This commit is contained in:
yumoqing 2026-05-26 09:33:09 +08:00
parent a691774afd
commit 8efae163b8

View File

@ -184,9 +184,9 @@ class AuthAPI:
raise e
if user is None:
info(f'timecost=client({ip}) {user} need login to access {path} ({t2-t1})')
exception(f'timecost=client({ip}) {user} need login to access {path} ({t2-t1})')
raise web.HTTPUnauthorized
info(f'timecost=client({ip}) {user} access {path} forbidden ({t2-t1})')
exception(f'timecost=client({ip}) {user} access {path} forbidden ({t2-t1})')
raise web.HTTPForbidden()
async def needAuth(self,path):