Skip to content

Commit

Permalink
Fix typ in constant name
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Reschke <[email protected]>
  • Loading branch information
LukasReschke committed Nov 2, 2016
1 parent b269ed5 commit 271f2a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/private/Authentication/TwoFactorAuth/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -175,12 +175,12 @@ public function verifyChallenge($providerId, IUser $user, $challenge) {

$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;
}
Expand Down Expand Up @@ -216,7 +216,7 @@ public function needsSecondFactor(IUser $user = null) {
*/
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);
}

}

0 comments on commit 271f2a4

Please sign in to comment.