|
@@ -46,12 +46,12 @@ public class CaptchaController
|
|
|
public AjaxResult getCode(HttpServletResponse response) throws IOException
|
|
|
{
|
|
|
AjaxResult ajax = AjaxResult.success();
|
|
|
-// boolean captchaEnabled = configService.selectCaptchaEnabled();
|
|
|
-// ajax.put("captchaEnabled", captchaEnabled);
|
|
|
-// if (!captchaEnabled)
|
|
|
-// {
|
|
|
-// return ajax;
|
|
|
-// }
|
|
|
+ boolean captchaEnabled = configService.selectCaptchaEnabled();
|
|
|
+ ajax.put("captchaEnabled", captchaEnabled);
|
|
|
+ if (!captchaEnabled)
|
|
|
+ {
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
|
|
|
// 保存验证码信息
|
|
|
String uuid = IdUtils.simpleUUID();
|