mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 09:01:54 +08:00
paranoid access for some reasons
This commit is contained in:
@@ -90,6 +90,7 @@ class Plugin(BaseAuthService):
|
||||
try:
|
||||
async with session.request(**kwargs) as response:
|
||||
response.raise_for_status()
|
||||
assert response.status == 200
|
||||
return True
|
||||
except Exception:
|
||||
get_logger().exception("Failed HTTP auth request for user %r", user)
|
||||
|
||||
Reference in New Issue
Block a user