Fix issue: change 2fa condition due to controller renaming
This commit is contained in:
parent
640f63c807
commit
0a9b6f0d99
|
|
@ -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()) {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue