更新 database_manager.py

master
wangsiyuan 2023-12-29 16:07:22 +08:00
parent 6ef3faf149
commit eb074e5dd5
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ class DatabaseManager:
return {'valid': True, 'status': status, 'name': name} return {'valid': True, 'status': status, 'name': name}
# 密码不匹配或用户不存在,返回登录失败 # 密码不匹配或用户不存在,返回登录失败
return {'valid': False} return {'valid': False, 'status': True}
def get_menu(self, role): def get_menu(self, role):
sql = "SELECT menu_name,path FROM menu_items WHERE role=%s ORDER BY `order`" sql = "SELECT menu_name,path FROM menu_items WHERE role=%s ORDER BY `order`"