mangement add oauth

This commit is contained in:
xiaomlove
2024-03-11 02:12:17 +08:00
parent a2b8ef3c50
commit 8903f10286
19 changed files with 455 additions and 7 deletions

View File

@@ -74,11 +74,17 @@ class NexusWebGuard implements StatefulGuard
return false;
}
$user = $this->provider->retrieveById($id);
if ($user) {
if (!$user) {
return false;
}
try {
$user->checkIsNormal();
$this->user = $user;
return true;
} catch (\Throwable $e) {
do_log($e->getMessage());
return false;
}
return false;
}
public function logout()