Reset a user's password. Used for example when the user does not
remember the existing password.
public resetPassword ( string $userId ) : string | ||
$userId | string | The user id for which to reset the password. |
return | string | The new password on success. |
/** * Reset a user's password. Used for example when the user does not * remember the existing password. * * @param string $userId The user ID for which to reset the password. * * @return string The new password on success. * @throws Horde_Auth_Exception */ public function resetPassword($userId) { if ($this->_base) { return $this->_base->resetPassword($userId); } return $this->hasCapability('resetpassword') ? $GLOBALS['registry']->callAppMethod($this->_app, 'authResetPassword', array('args' => array($userId))) : parent::resetPassword(); }
/** */ public function resetPassword($userId) { return $this->_base->resetPassword($userId); }