/**
* Reset password action. Decrypts received password values and then calls
* the original (parent class) function for regular processing.
*
* @see the parent class function for parameters and return value
*/
public function resetPassword()
{
$form = new FormResetPassword();
// check if "encrypted" flag is set
if (Common::getRequestVar('form_encrypted', 'false', 'string') == 'true') {
$this->decryptPassword($form, 'form_password');
$this->decryptPassword($form, 'form_password_bis');
}
// call the original function on the decrypted values
return parent::resetPassword();
}