用户,角色,权限增加是否启用,修补菜单排序

This commit is contained in:
mkg
2021-03-25 20:00:00 +08:00
parent 0672a13c0a
commit 2455351347
14 changed files with 818 additions and 79 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ def login():
if user is None:
return jsonify(msg="不存在的用户", code=0,success=False)
if user.enable is 1:
if user.enable is 0:
return jsonify(msg="用户被暂停使用", code=0,success=False)
if username == user.username and user.validate_password(password):