mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
debug
This commit is contained in:
parent
645fbd4f1c
commit
5fa4a1232f
2 changed files with 10 additions and 6 deletions
|
|
@ -1357,12 +1357,6 @@ App::setResource('user', function ($mode, $project, $console, $request, $respons
|
|||
$dbForProject->setMetadata('user', $user->getId());
|
||||
$dbForPlatform->setMetadata('user', $user->getId());
|
||||
|
||||
var_dump([
|
||||
'number' => 3,
|
||||
'file' => 'init.php',
|
||||
'$user' => $user,
|
||||
]);
|
||||
|
||||
return $user;
|
||||
}, ['mode', 'project', 'console', 'request', 'response', 'dbForProject', 'dbForPlatform']);
|
||||
|
||||
|
|
|
|||
|
|
@ -385,6 +385,16 @@ class Auth
|
|||
*/
|
||||
public static function sessionVerify(array $sessions, string $secret)
|
||||
{
|
||||
|
||||
var_dump([
|
||||
'secret' => $session->getAttribute('secret'),
|
||||
'provider' => $session->getAttribute('provider'),
|
||||
'expire' => $session->getAttribute('expire'),
|
||||
'hashed' => self::hash($secret),
|
||||
'secret_validation' => $session->getAttribute('secret') === self::hash($secret),
|
||||
'expiration_validation' => DateTime::formatTz(DateTime::format(new \DateTime($session->getAttribute('expire')))) >= DateTime::formatTz(DateTime::now()),
|
||||
]);
|
||||
|
||||
foreach ($sessions as $session) {
|
||||
if (
|
||||
$session->isSet('secret') &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue