Fix issue: change 2fa condition due to controller renaming

This commit is contained in:
Frederic Guillot 2015-05-21 22:08:19 -04:00
parent 640f63c807
commit 0a9b6f0d99
1 changed files with 1 additions and 1 deletions

View File

@ -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()) {