This commit is contained in:
Yuri Kuznetsov
2020-07-02 21:53:24 +03:00
parent d707979b7d
commit 4622e9fe01
+4 -3
View File
@@ -112,9 +112,10 @@ class Auth
}
if (!isset($username)) {
if (!empty($_COOKIE['auth-username']) && !empty($_COOKIE['auth-token'])) {
$username = $_COOKIE['auth-username'];
$password = $_COOKIE['auth-token'];
$cookie = $request->getCookieParams();
if (!empty($cookie['auth-username']) && !empty($cookie['auth-token'])) {
$username = $cookie['auth-username'];
$password = $cookie['auth-token'];
}
}