feat 超级管理员初始化密码随机生成 && 修改密码强制要求大写小写数字组合

This commit is contained in:
thsrite
2024-01-18 11:08:16 +08:00
parent 64233c89d7
commit a299d786fe
6 changed files with 25 additions and 9 deletions

View File

@ -19,7 +19,7 @@ if SystemUtils.is_frozen():
from app.core.config import settings
from app.core.module import ModuleManager
from app.core.plugin import PluginManager
from app.db.init import init_db, update_db
from app.db.init import init_db, update_db, init_super_user
from app.helper.thread import ThreadHelper
from app.helper.display import DisplayHelper
from app.helper.resource import ResourceHelper
@ -202,6 +202,8 @@ def start_module():
start_frontend()
# 检查认证状态
check_auth()
# 初始化超级管理员
init_super_user()
if __name__ == '__main__':