diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-03-31 23:01:13 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-03-31 23:01:13 -0400 |
commit | afdc062097fcf99f1a65d097dd54c5e8acaef584 (patch) | |
tree | 72c50cf3ee9bbde2ae289659ba01a583e750848f /app/Controller/Twofactor.php | |
parent | abeeba71672a711dab98194bb8ae751ee95e3385 (diff) |
Improve 2FA
Diffstat (limited to 'app/Controller/Twofactor.php')
-rw-r--r-- | app/Controller/Twofactor.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/Controller/Twofactor.php b/app/Controller/Twofactor.php index 7711666b..48954dc8 100644 --- a/app/Controller/Twofactor.php +++ b/app/Controller/Twofactor.php @@ -72,6 +72,9 @@ class Twofactor extends User )); } + // Allow the user to test or disable the feature + $this->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']))); } |