addUser() public method

Add a set of authentication credentials.
public addUser ( string $userId, array $credentials )
$userId string The userId to add.
$credentials array The credentials to be set.
示例#1
0
文件: Ldap.php 项目: jubinpatel/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)
 {
     list($userId, $credentials) = $GLOBALS['injector']->getInstance('Horde_Core_Factory_Auth')->create()->runHook($userId, $credentials, 'preauthenticate', 'admin');
     parent::addUser($userId, $credentials);
 }