]> git.mxchange.org Git - friendica.git/commitdiff
Exclude /api and /proxy from 2fa check
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 15 May 2019 12:56:02 +0000 (08:56 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 15 May 2019 12:56:02 +0000 (08:56 -0400)
src/Core/Authentication.php

index bf7a9eb76f5e353582710551da88d52ac836e107..646729c434014ac37794cdedf1ecc3d36c3e9f63 100644 (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;
                }