unlockUser() 공개 메소드

Unlocks a user and optionally resets the bad login count.
public unlockUser ( string $userId, boolean $resetBadLogins = false )
$userId string The user to unlock.
$resetBadLogins boolean Reset bad login counter?
예제 #1
0
파일: Application.php 프로젝트: horde/horde
 /**
  * Unlocks a user and optionally resets bad login count
  *
  * @param string  $userId          The userId to unlock.
  * @param boolean $resetBadLogins  Reset bad login counter, default no.
  *
  * @throws Horde_Auth_Exception
  */
 public function unlockUser($userId, $resetBadLogins = false)
 {
     if ($this->_base) {
         $this->_base->unlockUser($userId, $resetBadLogins);
         return;
     }
     if ($this->hasCapability('lock')) {
         parent::unlockUser($userId, $resetBadLogins);
     }
 }
예제 #2
0
 /**
  * Unlocks a user and optionally resets bad login count
  *
  * @param string  $userId          The userId to unlock.
  * @param boolean $resetBadLogins  Reset bad login counter, default no.
  *
  * @throws Horde_Auth_Exception
  */
 public function unlockUser($userId, $resetBadLogins = false)
 {
     if ($this->_base) {
         $this->_base->unlockUser($userId, $resetBadLogins);
         return;
     }
     if ($this->hasCapability('lock')) {
         $GLOBALS['registry']->callAppMethod($this->_app, 'authUnlockUser', array('args' => array($userId, $resetBadLogins)));
     } else {
         parent::unlockUser($userId, $resetBadLogins);
     }
 }
예제 #3
0
 /**
  */
 public function unlockUser($userId, $resetBadLogins = false)
 {
     return $this->_base->unlockUser($GLOBALS['registry']->convertUsername($userId, true), $resetBadLogins);
 }