mirror of
https://github.com/Break27/kvmd.git
synced 2026-02-06 18:36:37 +08:00
paranoid access for some reasons
This commit is contained in:
parent
fdba228eed
commit
6d1199c95c
@ -90,6 +90,7 @@ class Plugin(BaseAuthService):
|
|||||||
try:
|
try:
|
||||||
async with session.request(**kwargs) as response:
|
async with session.request(**kwargs) as response:
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
|
assert response.status == 200
|
||||||
return True
|
return True
|
||||||
except Exception:
|
except Exception:
|
||||||
get_logger().exception("Failed HTTP auth request for user %r", user)
|
get_logger().exception("Failed HTTP auth request for user %r", user)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user