From bf82736522ce570b154ec342b9dee49fa9d3a932 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 15 May 2019 08:56:02 -0400 Subject: [PATCH] Exclude /api and /proxy from 2fa check --- src/Core/Authentication.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Authentication.php b/src/Core/Authentication.php index bf7a9eb76f..646729c434 100644 --- a/src/Core/Authentication.php +++ b/src/Core/Authentication.php @@ -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; } -- 2.39.5