/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakedc/auth/src/Authenticator
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakedc/auth/src/Authenticator/CookieAuthenticator.php (1977B)
getConfig('rememberMeField');
$bodyData = $request->getParsedBody();
if (empty($bodyData)) {
/**
* @var \Cake\Http\Session $session
*/
$session = $request->getAttribute('session');
$bodyData = $session->read(self::SESSION_DATA_KEY);
$session->delete(self::SESSION_DATA_KEY);
}
if (!$this->_checkUrl($request) || !is_array($bodyData) || empty($bodyData[$field])) {
return [
'request' => $request,
'response' => $response,
];
}
$value = $this->_createToken($identity);
$cookie = $this->_createCookie($value);
return [
'request' => $request,
'response' => $response->withAddedHeader('Set-Cookie', $cookie->toHeaderValue()),
];
}
}