AutoLink icon indicating copy to clipboard operation
AutoLink copied to clipboard

auth bug

Open Ysingle opened this issue 5 years ago • 0 comments

用户注销功能失效: 在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)  。 这样修改注销功能才正常

Ysingle avatar Jul 26 '19 00:07 Ysingle