fix dead screen

This commit is contained in:
Aura
2022-05-18 20:10:54 +08:00
parent 663cd7c41b
commit cb3586d814

View File

@@ -201,7 +201,8 @@ class UserHandler(BaseHandler):
if username:
data = self.instance.get_user_info(username)
else:
self.set_status(HTTPStatus.UNAUTHORIZED)
# self.set_status(HTTPStatus.UNAUTHORIZED)
self.clear_cookie("username")
data = {"message": "Please try to login"}
return data