File_Passwd_Authdigest::addUser()
Описание
Add an user to the AuthDigestFile.
$user and $realm must start with an alphabetical charachter and must NOT contain any other characters than alphanumerics, the underline and dash.
Параметр
- string $user
the user to add
- string $realm
the realm the user should be in
- string $pass
the plaintext password
Возвращаемое значение
Возвращает TRUE при удаче и PEAR_Error в обратном случае.
Таблица 39-1. Возможные значения PEAR_Error
Error Code | Summary |
---|---|
FILE_PASSWD_E_EXISTS_ALREADY | user already exists in the supplied realm |
FILE_PASSWD_E_INVLAID_CHARS | user or realm contains illegal characters |
Пред. | Начало | След. |
File_Passwd_Authdigest::save() | Уровень выше | File_Passwd_Authdigest::changePasswd() |