Пример #1
0
 /**
  * Logs in the given user and sets properties
  * in the session.
  */
 public function login($user, $remember = true)
 {
     $result = parent::login($user, $remember);
     $user->mfa_persist_code = $this->generatePersistCode($user);
     $user->save();
     return $result;
 }
Пример #2
0
 /**
  * Logs in the given user and sets properties
  * in the session.
  *
  * @static 
  */
 public static function login($user, $remember = true)
 {
     //Method inherited from \October\Rain\Auth\Manager
     return \Backend\Classes\AuthManager::login($user, $remember);
 }