File_Passwd_Authdigest::changePasswd()

File_Passwd_Authdigest::changePasswd() -- Change password

Referentiesamenvatting

mixed File_Passwd_Authdigest::changePasswd (string $user, string $realm, string $pass)

Beschrijving

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.

Parameter

string $user

the user whose password should be changed

string $realm

the realm the user is in

string $pass

the new plaintext password

Return waarde

Geeft TRUE terug bij success, PEAR_Error als het faalt.

Tabel 38-1. Mogelijke PEAR_Error waarden

Error CodeSummary
FILE_PASSWD_E_USER_NOT_IN_REALMuser doesn't exist in the supplied realm
FILE_PASSWD_E_INVALID_CHARSuser or realm contains illegal characters

Note

Deze functie kan niet statisch worden aangeroepen.