feat:登录-新增用户账号登录 验证码 ipBlock
1. 新增 登录的 图形校验码 2. 遗落问题,登录页的提交,表单全部统一了。没有区分类型,而且类型的枚举和校验没真正使用。还有其他功能如注册,改密码都没开出来
This commit is contained in:
@ -34,6 +34,7 @@ enum Api {
|
||||
loginConfig = '/system/loginConfig',
|
||||
mobileLoginCode = '/system/captcha',
|
||||
mobileLoginImg = '/system/captchaImg',
|
||||
checkAccountCaptcha = '/system/checkAccountCaptcha',
|
||||
}
|
||||
|
||||
/**
|
||||
@ -262,3 +263,14 @@ export function sendMobileLoginCode(params, mode: ErrorMessageMode = 'modal') {
|
||||
},
|
||||
);
|
||||
}
|
||||
export function checkAccountCaptchaApi(params, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get(
|
||||
{
|
||||
url: Api.checkAccountCaptcha,
|
||||
params: params,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@ -8,6 +8,7 @@ export interface LoginParams {
|
||||
password: string;
|
||||
tenantCode: string;
|
||||
deviceType?: number;
|
||||
captchaCode: string;
|
||||
}
|
||||
|
||||
export interface RoleInfo {
|
||||
|
||||
Reference in New Issue
Block a user