mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-08-05 07:37:25 +02:00
Simplify code based on assumptions about new 'Delight\Cookie' behavior
This commit is contained in:
15
src/Auth.php
15
src/Auth.php
@@ -457,10 +457,7 @@ final class Auth extends UserManager {
|
|||||||
$cookie->setPath($params['path']);
|
$cookie->setPath($params['path']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($params['domain'])) {
|
$cookie->setDomain($params['domain']);
|
||||||
$cookie->setDomain($params['domain']);
|
|
||||||
}
|
|
||||||
|
|
||||||
$cookie->setHttpOnly($params['httponly']);
|
$cookie->setHttpOnly($params['httponly']);
|
||||||
$cookie->setSecureOnly($params['secure']);
|
$cookie->setSecureOnly($params['secure']);
|
||||||
|
|
||||||
@@ -481,10 +478,7 @@ final class Auth extends UserManager {
|
|||||||
$cookie->setPath($params['path']);
|
$cookie->setPath($params['path']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($params['domain'])) {
|
$cookie->setDomain($params['domain']);
|
||||||
$cookie->setDomain($params['domain']);
|
|
||||||
}
|
|
||||||
|
|
||||||
$cookie->setHttpOnly($params['httponly']);
|
$cookie->setHttpOnly($params['httponly']);
|
||||||
$cookie->setSecureOnly($params['secure']);
|
$cookie->setSecureOnly($params['secure']);
|
||||||
|
|
||||||
@@ -555,10 +549,7 @@ final class Auth extends UserManager {
|
|||||||
$cookie->setPath($params['path']);
|
$cookie->setPath($params['path']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($params['domain'])) {
|
$cookie->setDomain($params['domain']);
|
||||||
$cookie->setDomain($params['domain']);
|
|
||||||
}
|
|
||||||
|
|
||||||
$cookie->setHttpOnly($params['httponly']);
|
$cookie->setHttpOnly($params['httponly']);
|
||||||
$cookie->setSecureOnly($params['secure']);
|
$cookie->setSecureOnly($params['secure']);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user