diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-11-02 13:08:09 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-11-02 13:39:17 +0100 |
commit | 271f2a4cfff2be6f25d4bc546040613fdb2e70bf (patch) | |
tree | 1ce9651a6dc397bb1ce37598fa25f1f704571794 | |
parent | b269ed5a7b2bdfc25cbdb2c45e2166ffe5232bb3 (diff) | |
download | nextcloud-server-271f2a4cfff2be6f25d4bc546040613fdb2e70bf.tar.gz nextcloud-server-271f2a4cfff2be6f25d4bc546040613fdb2e70bf.zip |
Fix typ in constant name
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
-rw-r--r-- | lib/private/Authentication/TwoFactorAuth/Manager.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/Authentication/TwoFactorAuth/Manager.php b/lib/private/Authentication/TwoFactorAuth/Manager.php index 1297e4513f4..d84ba4aee7e 100644 --- a/lib/private/Authentication/TwoFactorAuth/Manager.php +++ b/lib/private/Authentication/TwoFactorAuth/Manager.php @@ -37,7 +37,7 @@ class Manager { 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; @@ -175,12 +175,12 @@ class Manager { $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; } @@ -216,7 +216,7 @@ class Manager { */ 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); } } |