auth* : Add the overwritepassword method to the auth classes
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2054 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -95,4 +95,16 @@ class authsympa extends auth
|
||||
"The password can't be change for SYMPA users"),
|
||||
405);
|
||||
}
|
||||
|
||||
/** Method to overwrite the password (without oldpassword check)
|
||||
Must be reserved to the administrators. For the users, use changepassword
|
||||
method
|
||||
@param string $email the user identifier to select
|
||||
@param string $newpassword The new password to be recorded */
|
||||
public function overwritepassword ($email, $newpassword)
|
||||
{
|
||||
throw new exception (dgettext("domframework",
|
||||
"The password can't be overwrite for Sympa users"),
|
||||
405);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user