Exclude /api and /proxy from 2fa check

This commit is contained in:
Hypolite Petovan 2019-05-15 08:56:02 -04:00
parent 969b7744c9
commit bf82736522

View file

@ -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;
}