oauth login check user is normal

This commit is contained in:
xiaomlove
2025-05-06 20:25:57 +07:00
parent 32ff10923c
commit eb830ec869
3 changed files with 7 additions and 7 deletions

View File

@@ -1422,12 +1422,7 @@ function get_user_from_cookie(array $cookie, $isArray = true): array|\App\Models
do_log("$log, user not exists");
return null;
}
try {
$row->checkIsNormal();
} catch (\Exception $e) {
do_log("$log, " . $e->getMessage());
return null;
}
$row->checkIsNormal();
$authKey = $row->auth_key;
}
$expectedSignature = hash_hmac('sha256', $tokenJson, $authKey);