addUser() 공개 메소드

Adds a set of authentication credentials.
public addUser ( string $userId, array $credentials )
$userId string The userId to add.
$credentials array The credentials to use.
예제 #1
0
파일: Application.php 프로젝트: horde/horde
 /**
  * Add a set of authentication credentials.
  *
  * @param string $userId      The user ID to add.
  * @param array $credentials  The credentials to use.
  *
  * @throws Horde_Auth_Exception
  */
 public function addUser($userId, $credentials)
 {
     if ($this->_base) {
         $this->_base->addUser($userId, $credentials);
         return;
     }
     if ($this->hasCapability('add')) {
         $GLOBALS['registry']->callAppMethod($this->_app, 'authAddUser', array('args' => array($userId, $credentials)));
     } else {
         parent::addUser($userId, $credentials);
     }
 }
예제 #2
0
 /**
  */
 public function addUser($userId, $credentials)
 {
     return $this->_base->addUser($GLOBALS['registry']->convertUsername($userId, true), $credentials);
 }