Skip to content
GitLab
Explore
Sign in
Commits on Source (1)
Add an is_array() check
· ef67f18e
ale
authored
May 31, 2023
ef67f18e
Hide whitespace changes
Inline
Side-by-side
login-debug.php
View file @
ef67f18e
...
...
@@ -44,7 +44,7 @@ function debug_login_auth_cookie_bad_session_token($cookie_elements) {
$verifier
=
hash
(
'sha256'
,
$token
);
//$sessions = $manager->get_sessions();
$sessions
=
get_user_meta
(
$user
->
ID
,
'session_tokens'
,
true
);
$session_names
=
implode
(
","
,
array_keys
(
$sessions
));
$session_names
=
is_array
(
$sessions
)
?
implode
(
","
,
array_keys
(
$sessions
))
:
$sessions
;
error_log
(
"LOGIN: auth_cookie_bad_session_token: username=
{
$username
}
token=
{
$token
}
verifier=
{
$verifier
}
sessions=
{
$session_names
}
"
);
}
...
...