单元测试:新建用户与用户组

This commit is contained in:
2025-07-14 15:13:05 +08:00
parent e011a1ea0e
commit 557a50f539
26 changed files with 396 additions and 242 deletions

15
service/user/login.py Normal file
View File

@@ -0,0 +1,15 @@
from models.setting import Setting
async def login(
username: str,
password: str
):
"""
"""
isCaptchaRequired = await Setting.get(type='auth', name='login_captcha', type=bool)
captchaType = await Setting.get(type='auth', name='captcha_type', type=str)
# [TODO] 验证码校验