complete_login() public méthode

Complete the login for a user by incrementing the logins and saving login timestamp
public complete_login ( ) : void
Résultat void
Exemple #1
0
 public function force_login($user, $mark_session_as_forced = false)
 {
     if (!is_object($user)) {
         $username = $user;
         $user = ORM::factory('user');
         $user->where($user->unique_key($username), '=', $username)->find();
     }
     if ($mark_session_as_forced === true) {
         Session::instance()->set('auth_forced', $user->username);
     }
     return parent::complete_login($user);
 }
Exemple #2
0
 /**
  * Переопределение метода для подгрузки списка ролей пользователя.
  */
 public function complete_login()
 {
     if ($this->_loaded) {
         $this->roles();
     }
     parent::complete_login();
 }