修改登录提交

master
wangxy 4 months ago
parent b1207f6475
commit 24952e0481

@ -45,11 +45,11 @@ public class SysRegisterService
sysUser.setUserName(username);
// 验证码开关
boolean captchaEnabled = configService.selectCaptchaEnabled();
/*boolean captchaEnabled = configService.selectCaptchaEnabled();
if (captchaEnabled)
{
validateCaptcha(username, registerBody.getCode(), registerBody.getUuid());
}
}*/
if (StringUtils.isEmpty(username))
{

@ -29,7 +29,7 @@
<svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon" />
</el-input>
</el-form-item>
<el-form-item prop="code" v-if="captchaEnabled">
<!-- <el-form-item prop="code" v-if="captchaEnabled">
<el-input
v-model="registerForm.code"
auto-complete="off"
@ -42,7 +42,7 @@
<div class="register-code">
<img :src="codeUrl" @click="getCode" class="register-code-img"/>
</div>
</el-form-item>
</el-form-item>-->
<el-form-item style="width:100%;">
<el-button
:loading="loading"
@ -102,7 +102,7 @@ export default {
{ required: true, trigger: "blur", message: "请再次输入您的密码" },
{ required: true, validator: equalToPassword, trigger: "blur" }
],
code: [{ required: true, trigger: "change", message: "请输入验证码" }]
// code: [{ required: true, trigger: "change", message: "" }]
},
loading: false,
captchaEnabled: true

Loading…
Cancel
Save