try to fix login in proxy

pull/128/head
qkqpttgf 2020-08-26 10:27:20 +08:00 committed by GitHub
parent 6abedbafd5
commit 739f42e24f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1038,7 +1038,7 @@ function adminform($name = '', $pass = '', $path = '')
$html = '<html><head><title>' . getconstStr('AdminLogin') . '</title><meta charset=utf-8></head>';
if ($name!=''&&$pass!='') {
$html .= '<meta http-equiv="refresh" content="3;URL=' . $path . '"><body>' . getconstStr('LoginSuccess') . '</body></html>';
$statusCode = 302;
$statusCode = 201;
date_default_timezone_set('UTC');
$header = [
'Set-Cookie' => $name . '=' . $pass . '; path=/; expires=' . date(DATE_COOKIE, strtotime('+1hour')),