/**
  * 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;
     }
 }
Beispiel #3
0
 public function __construct($username = '', $password = '')
 {
     parent::__construct($username, $password);
 }
 public function __construct($username, $password, $controller)
 {
     parent::__construct($username, $password);
     $this->controller = $controller;
     return true;
 }
Beispiel #5
0
 public function __construct($username, $password, $authtip)
 {
     parent::__construct($username, $password);
     $this->authtip = $authtip;
     $this->objerror = new stdclass();
 }
Beispiel #6
0
Datei: U.php Projekt: ph7pal/momo
 public function __construct($username, $password)
 {
     parent::__construct($username, $password);
     $this->username = $username;
 }
Beispiel #7
0
 public function __construct($email, $password, $remember_me = null)
 {
     parent::__construct($email, $password);
     $this->remember_me = $remember_me;
 }
Beispiel #8
0
 public function __construct($email, $password, $type)
 {
     parent::__construct(trim(strtolower($email)), $password);
     $this->type = $type;
 }
Beispiel #9
0
 public function __construct($email, $password, $usertype)
 {
     parent::__construct($email, $password, $usertype);
     $this->usertype = $usertype;
 }
Beispiel #10
0
 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);
 }
Beispiel #14
0
Datei: U.php Projekt: ph7pal/mei
 public function __construct($email, $password)
 {
     parent::__construct($username, $password);
     $this->email = $email;
 }
Beispiel #15
0
 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);
 }