-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
用户注销功能失效: 在auth.py文件中的 get 方法。
def get():
args = self.parser.parse_arges()
username = arges["username"]
if username in session: # 判断错误,username不应该取值session_dict的value值,应该是key值。该判断应该为 if “username” in session
session.pop(username, None) # session_dict删除也是通过key值。应改为 session.pop("username", None) 。 这样修改注销功能才正常
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels