From 58a2eb518b40b378eb0ae52f6258a70a04d9d40d Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 7 Jun 2023 13:45:18 +0800 Subject: [PATCH] bugfix --- ahserver/processorResource.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ahserver/processorResource.py b/ahserver/processorResource.py index cac8873..e9fc078 100755 --- a/ahserver/processorResource.py +++ b/ahserver/processorResource.py @@ -209,11 +209,15 @@ class ProcessorResource(AppLogger, StaticResource,Url2File): async def remember_user(userid): await auth.remember(request, userid) + async def forget_user(): + await auth.forget(request) + async def get_user(): return await auth.get_auth(request) self.y_env.i18n = serveri18n self.y_env.remember_user = remember_user + self.y_env.forget_user = forget_user self.y_env.get_user = get_user self.y_env.i18nDict = i18nDICT self.y_env.terminalType = getClientType(request)