]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix typ in constant name
authorLukas Reschke <lukas@statuscode.ch>
Wed, 2 Nov 2016 12:08:09 +0000 (13:08 +0100)
committerLukas Reschke <lukas@statuscode.ch>
Wed, 2 Nov 2016 12:39:17 +0000 (13:39 +0100)
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
lib/private/Authentication/TwoFactorAuth/Manager.php

index 1297e4513f4889997ed0b2f77540e09ff5b151c4..d84ba4aee7ecfb3662c1a6f01d661a0239709387 100644 (file)
@@ -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);
        }
 
 }