/** * 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; }
/** * 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); }