From 739f42e24f0ce585efcb941559886231273eabd1 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Wed, 26 Aug 2020 10:27:20 +0800 Subject: [PATCH] try to fix login in proxy --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.php b/common.php index 4463c38..88e691a 100644 --- a/common.php +++ b/common.php @@ -1038,7 +1038,7 @@ function adminform($name = '', $pass = '', $path = '') $html = '' . getconstStr('AdminLogin') . ''; if ($name!=''&&$pass!='') { $html .= '' . getconstStr('LoginSuccess') . ''; - $statusCode = 302; + $statusCode = 201; date_default_timezone_set('UTC'); $header = [ 'Set-Cookie' => $name . '=' . $pass . '; path=/; expires=' . date(DATE_COOKIE, strtotime('+1hour')), -- GitLab