Skip to content
Permalink
Browse files
Merge pull request #684 from tarasfrompir/patch-22
Обязательная проверка наличия логина и пароля
  • Loading branch information
sergejey committed Feb 11, 2020
2 parents 4803a9f + 7cfa964 commit 39b02fc1fbd6605e20cea087665c8b2738f7c338
Showing 1 changed file with 1 addition and 1 deletion.
@@ -40,7 +40,7 @@
}
else
{
if ($_SERVER['PHP_AUTH_USER'] != EXT_ACCESS_USERNAME || $_SERVER['PHP_AUTH_PW']!= EXT_ACCESS_PASSWORD)
if (!defined('EXT_ACCESS_USERNAME') || !defined('EXT_ACCESS_PASSWORD') || $_SERVER['PHP_AUTH_USER'] != EXT_ACCESS_USERNAME || $_SERVER['PHP_AUTH_PW']!= EXT_ACCESS_PASSWORD)
{
// header("Location:$PHP_SELF\n\n");
header("WWW-Authenticate: Basic realm=\"" . PROJECT_TITLE . "\"");

0 comments on commit 39b02fc

Please sign in to comment.