修改验证码开关变量名

This commit is contained in:
RuoYi
2022-07-12 18:19:35 +08:00
parent f12baad00c
commit 4b1351ef21
3 changed files with 9 additions and 9 deletions

View File

@@ -46,9 +46,9 @@ public class ValidateCodeServiceImpl implements ValidateCodeService
public AjaxResult createCaptcha() throws IOException, CaptchaException
{
AjaxResult ajax = AjaxResult.success();
boolean captchaOnOff = captchaProperties.getEnabled();
ajax.put("captchaOnOff", captchaOnOff);
if (!captchaOnOff)
boolean captchaEnabled = captchaProperties.getEnabled();
ajax.put("captchaEnabled", captchaEnabled);
if (!captchaEnabled)
{
return ajax;
}