Commit 3ce8f082 by 阳浪

管理端添加验证码

parent afa369cd
......@@ -543,8 +543,12 @@ public class AuthController {
"application/json;charset=utf-8"}, method = RequestMethod.POST)
public Response<String> loginManage(HttpServletRequest request,HttpServletResponse httpResponse,
@ApiParam(name = "user") @RequestBody @Valid LoginInfoVO user, BindingResult validResults) {
try {
boolean flag = accountService.validateCaptcha(user.getCaptchaKey(), user.getCaptchaVal()); //图形码验证
}catch (BizException e){
logger.warn("验证码校验错误:{}" + e);
return Response.fail(e.getCode(),e.getMsg());
}
if (validResults.hasFieldErrors()) {
String error = ValidUtil.convertParamError(validResults.getFieldErrors());
logger.warn("参数校验错误:{}" + error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment