Browse Source

验证码按配置来

wyyay 1 year ago
parent
commit
6371b67e45

+ 1 - 2
hazard-admin/src/main/java/com/ozs/web/controller/common/CaptchaController.java

@@ -46,8 +46,7 @@ public class CaptchaController
     public AjaxResult getCode(HttpServletResponse response) throws IOException
     {
         AjaxResult ajax = AjaxResult.success();
-        //boolean captchaEnabled = configService.selectCaptchaEnabled();
-        boolean captchaEnabled = true;
+        boolean captchaEnabled = configService.selectCaptchaEnabled();
         ajax.put("captchaEnabled", captchaEnabled);
         if (!captchaEnabled) {
             return ajax;