单元测试:新建用户与用户组
This commit is contained in:
15
service/user/login.py
Normal file
15
service/user/login.py
Normal 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] 验证码校验
|
||||
|
||||
|
||||
Reference in New Issue
Block a user