const SESSION_UID_KEY = 'two_factor_auth_uid';
const BACKUP_CODES_APP_ID = 'twofactor_backupcodes';
const BACKUP_CODES_PROVIDER_ID = 'backup_codes';
- const REMEBER_LOGIN = 'two_factor_remember_login';
+ const REMEMBER_LOGIN = 'two_factor_remember_login';
/** @var AppManager */
private $appManager;
$passed = $provider->verifyChallenge($user, $challenge);
if ($passed) {
- if ($this->session->get(self::REMEBER_LOGIN) === true) {
+ if ($this->session->get(self::REMEMBER_LOGIN) === true) {
// TODO: resolve cyclic dependency and use DI
\OC::$server->getUserSession()->createRememberMeToken($user);
}
$this->session->remove(self::SESSION_UID_KEY);
- $this->session->remove(self::REMEBER_LOGIN);
+ $this->session->remove(self::REMEMBER_LOGIN);
}
return $passed;
}
*/
public function prepareTwoFactorLogin(IUser $user, $rememberMe) {
$this->session->set(self::SESSION_UID_KEY, $user->getUID());
- $this->session->set(self::REMEBER_LOGIN, $rememberMe);
+ $this->session->set(self::REMEMBER_LOGIN, $rememberMe);
}
}