Improve and fix issues with 2FA

This commit is contained in:
Frederic Guillot
2015-04-03 14:40:00 -04:00
parent c72bca04a8
commit e5f6e364f1
2 changed files with 4 additions and 1 deletions

View File

@@ -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'])));