resetPassword() 공개 메소드

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.
리턴 string The new password on success.
예제 #1
0
파일: Application.php 프로젝트: horde/horde
 /**
  * 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();
 }
예제 #2
0
 /**
  */
 public function resetPassword($userId)
 {
     return $this->_base->resetPassword($userId);
 }