/** * Class constructor * * @param type $username username * @param type $password optional */ public function __construct($username, $password = NULL) { if (isset($password)) { parent::__construct($username, $password); } else { $this->username = $username; $this->_isSwap = TRUE; } }
public function __construct($username, $password = null) { // sets username and password values parent::__construct($username, $password); $this->user = User::model()->find('LOWER(email)=:input OR LOWER(username)=:input', array(':input' => strtolower($this->username))); if ($this->user === null) { $this->errorCode = self::ERROR_USERNAME_INVALID; } elseif ($password === null) { /** * you can set here states for user logged in with oauth if you need * you can also use hoauthAfterLogin() * @link https://github.com/SleepWalker/hoauth/wiki/Callbacks */ $this->beforeAuthentication(); $this->errorCode = self::ERROR_NONE; } }
public function __construct($username = '', $password = '') { parent::__construct($username, $password); }
public function __construct($username, $password, $controller) { parent::__construct($username, $password); $this->controller = $controller; return true; }
public function __construct($username, $password, $authtip) { parent::__construct($username, $password); $this->authtip = $authtip; $this->objerror = new stdclass(); }
public function __construct($username, $password) { parent::__construct($username, $password); $this->username = $username; }
public function __construct($email, $password, $remember_me = null) { parent::__construct($email, $password); $this->remember_me = $remember_me; }
public function __construct($email, $password, $type) { parent::__construct(trim(strtolower($email)), $password); $this->type = $type; }
public function __construct($email, $password, $usertype) { parent::__construct($email, $password, $usertype); $this->usertype = $usertype; }
public function __construct($username, $password, $campus_id) { parent::__construct($username, $password); $this->campus_id = $campus_id; }
/** * Constructor Method * * @access public * @return void */ public function __construct($username, $password) { parent::__construct($username, $password); \application\components\EventManager::attach($this); }
/** * Constructor overload for two factor code */ public function __construct($username, $password, $twoFactorCode = false) { parent::__construct($username, $password); $this->twoFactorCode = $twoFactorCode; }
public function __construct($usuario, $contrasena) { $this->usuario = strtolower($usuario); $this->contrasena = $contrasena; parent::__construct($this->usuario, $contrasena); }
public function __construct($email, $password) { parent::__construct($username, $password); $this->email = $email; }
public function __construct($username, $password, $loginType = self::LOGIN_BY_USERNAME) { $this->loginType = (int) $loginType; parent::__construct($username, $password); }
public function __construct($user = '', $pass = '') { $this->_id = -1; parent::__construct($user, $pass); }