Merge pull request #7144 from MrPetovan/task/two-factor-authentication

Exclude /api and /proxy from 2fa check
This commit is contained in:
Tobias Diekershoff 2019-05-15 16:21:05 +02:00 committed by GitHub
commit 2caf95f481
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5297 additions and 4965 deletions

View File

@ -71,7 +71,7 @@ class Authentication extends BaseObject
} }
// Check current path, if 2fa authentication module return // 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; return;
} }

File diff suppressed because it is too large Load Diff