mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 18:11:54 +08:00
paranoid access for some reasons
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user