summaryrefslogtreecommitdiff
path: root/app/Controller/Twofactor.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-04-03 14:40:00 -0400
committerFrederic Guillot <fred@kanboard.net>2015-04-03 14:40:00 -0400
commite5f6e364f184eaa535c6b29cbafe3418ea83d53f (patch)
tree7c9c684aab9dca944f4cb5ef36d10d5165d65cfd /app/Controller/Twofactor.php
parentc72bca04a8be19b2da699ee58f9203f08318d241 (diff)
Improve and fix issues with 2FA
Diffstat (limited to 'app/Controller/Twofactor.php')
-rw-r--r--app/Controller/Twofactor.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controller/Twofactor.php b/app/Controller/Twofactor.php
index 48954dc8..e3451d33 100644
--- a/app/Controller/Twofactor.php
+++ b/app/Controller/Twofactor.php
@@ -73,7 +73,7 @@ class Twofactor extends User
}
// Allow the user to test or disable the feature
- $this->session['user']['twofactor_activated'] = false;
+ $_SESSION['user']['twofactor_activated'] = false;
$this->session->flash(t('User updated successfully.'));
$this->response->redirect($this->helper->url('twofactor', 'index', array('user_id' => $user['id'])));