mirror of
https://github.com/friendica/friendica
synced 2025-04-28 15:04:26 +02:00
Add more Cookie tests (create new StaticCookie class for mocking setcookie())
This commit is contained in:
parent
a8b89dc486
commit
94a8a60841
4 changed files with 182 additions and 17 deletions
|
@ -75,7 +75,7 @@ class Authentication
|
|||
$data = $this->cookie->getData();
|
||||
|
||||
// When the "Friendica" cookie is set, take the value to authenticate and renew the cookie.
|
||||
if (isset($data) && isset($data->uid)) {
|
||||
if (isset($data->uid)) {
|
||||
|
||||
$user = $this->dba->selectFirst(
|
||||
'user',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue