Merge pull request #7144 from MrPetovan/task/two-factor-authentication
Exclude /api and /proxy from 2fa check
This commit is contained in:
commit
2caf95f481
|
@ -71,7 +71,7 @@ class Authentication extends BaseObject
|
|||
}
|
||||
|
||||
// Check current path, if 2fa authentication module return
|
||||
if ($a->argc > 0 && in_array($a->argv[0], ['ping', '2fa', 'view', 'help', 'logout'])) {
|
||||
if ($a->argc > 0 && in_array($a->argv[0], ['ping', '2fa', 'view', 'help', 'api', 'proxy', 'logout'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
10260
view/lang/C/messages.po
10260
view/lang/C/messages.po
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue