diff options
Diffstat (limited to 'app/Controller/TwoFactorController.php')
-rw-r--r-- | app/Controller/TwoFactorController.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Controller/TwoFactorController.php b/app/Controller/TwoFactorController.php index c8540f85..d02c8950 100644 --- a/app/Controller/TwoFactorController.php +++ b/app/Controller/TwoFactorController.php @@ -91,7 +91,7 @@ class TwoFactorController extends UserViewController if ($provider->authenticate()) { $this->flash->success(t('The two factor authentication code is valid.')); - $this->user->update(array( + $this->userModel->update(array( 'id' => $user['id'], 'twofactor_activated' => 1, 'twofactor_secret' => $this->authenticationManager->getPostAuthenticationProvider()->getSecret(), @@ -117,7 +117,7 @@ class TwoFactorController extends UserViewController $user = $this->getUser(); $this->checkCurrentUser($user); - $this->user->update(array( + $this->userModel->update(array( 'id' => $user['id'], 'twofactor_activated' => 0, 'twofactor_secret' => '', @@ -186,7 +186,7 @@ class TwoFactorController extends UserViewController if ($this->request->getStringParam('disable') === 'yes') { $this->checkCSRFParam(); - $this->user->update(array( + $this->userModel->update(array( 'id' => $user['id'], 'twofactor_activated' => 0, 'twofactor_secret' => '', |