File_Passwd_Authdigest::changePasswd()
Описание
Change the password of a certain user in a specific realm.
This method in fact adds the user whith the new password after deleting the user.
Параметр
- string $user
the user whose password should be changed
- string $realm
the realm the user is in
- string $pass
the new plaintext password
Возвращаемое значение
Возвращает TRUE при удаче и PEAR_Error в обратном случае.
Таблица 39-1. Возможные значения PEAR_Error
Error Code | Summary |
---|---|
FILE_PASSWD_E_USER_NOT_IN_REALM | user doesn't exist in the supplied realm |
FILE_PASSWD_E_INVALID_CHARS | user or realm contains illegal characters |
Пред. | Начало | След. |
File_Passwd_Authdigest::addUser() | Уровень выше | File_Passwd_Authdigest::verifyPasswd() |