提交 ef1b2315 编写于 作者: C czhu

不区分大小写

上级 aa73b61e
......@@ -57,9 +57,9 @@ class User:
self.__set_user__()
def is_user(self, email):
return email in self.user_list
return email.lower() in [user.lower() for user in self.user_list]
def is_root(self, email):
return email == ROOT
return email.lower() == ROOT.lower()
user_manager = User()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册