From: Hypolite Petovan Date: Wed, 15 May 2019 12:56:02 +0000 (-0400) Subject: Exclude /api and /proxy from 2fa check X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bf82736522ce570b154ec342b9dee49fa9d3a932;p=friendica.git Exclude /api and /proxy from 2fa check --- 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; }