Auth::changePassword() – change the password of a user


mixed Auth::changePassword ( string $username , string $password )


Change the password of a user within the Auth Container.


string $username

the username of the user

string $password

the new password for the user

Return value

mixed - TRUE on success, a PEAR Error on failure.


This function can not be called statically.

Not all Auth Containers implement this functionality.

Attach a log observer instance to the internal Log object (Previous) check if a session with valid authentication information exists (Next)
Last updated: Thu, 08 Oct 2015 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

Note by:
How would one make a form like so:

Old Password:
New Password:

And the system checks the current password...
Thanks :).