summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-05-21 22:08:19 -0400
committerFrederic Guillot <fred@kanboard.net>2015-05-21 22:08:19 -0400
commit0a9b6f0d999596cb46201b7df4373fdabd683cf7 (patch)
treecfffad7a2e2810a9eb28401417803c35d3305995
parent640f63c807a159a31d89df0f852eeb279202fca2 (diff)
Fix issue: change 2fa condition due to controller renaming
-rw-r--r--app/Controller/Base.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controller/Base.php b/app/Controller/Base.php
index 477d82a5..30d0b4e4 100644
--- a/app/Controller/Base.php
+++ b/app/Controller/Base.php
@@ -212,7 +212,7 @@ abstract class Base
*/
public function handle2FA($controller, $action)
{
- $ignore = ($controller === 'twofactor' && in_array($action, array('code', 'check'))) || ($controller === 'user' && $action === 'logout');
+ $ignore = ($controller === 'twofactor' && in_array($action, array('code', 'check'))) || ($controller === 'auth' && $action === 'logout');
if ($ignore === false && $this->userSession->has2FA() && ! $this->userSession->check2FA()) {