From 4622e9fe01dedba1f5aabe026fb8d3b093da4ee8 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 2 Jul 2020 21:53:24 +0300 Subject: [PATCH] dev --- application/Espo/Core/Api/Auth.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/application/Espo/Core/Api/Auth.php b/application/Espo/Core/Api/Auth.php index 852648e85c..e9d0b0f5b0 100644 --- a/application/Espo/Core/Api/Auth.php +++ b/application/Espo/Core/Api/Auth.php @@ -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']; } }