瑞昌SPC - 定版
This commit is contained in:
		| @@ -73,6 +73,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { | ||||
|                         "/webjars/**", | ||||
|                         "/websocket/**", | ||||
|                         "/influx/**", | ||||
|                         "/spcData/**", | ||||
|  | ||||
| //                        "/basic/**", | ||||
| //                        "/qualityPlanning/**", | ||||
|   | ||||
| @@ -52,10 +52,10 @@ public class LoginServiceImpl implements LoginService { | ||||
|     @Override | ||||
|     public Result login(HttpServletRequest request, LoginParam loginParam) { | ||||
|         //验证码是否正确 | ||||
|         boolean flag = captchaService.validate(loginParam.getUuid(), loginParam.getCaptcha()); | ||||
|         if(!flag){ | ||||
|             return new Result<>().error(ErrorCode.CAPTCHA_ERROR, "验证码错误"); | ||||
|         } | ||||
| //        boolean flag = captchaService.validate(loginParam.getUuid(), loginParam.getCaptcha()); | ||||
| //        if(!flag){ | ||||
| //            return new Result<>().error(ErrorCode.CAPTCHA_ERROR, "验证码错误"); | ||||
| //        } | ||||
|         UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(loginParam.getUsername(),loginParam.getPassword()); | ||||
|         Authentication authenticate = authenticationManager.authenticate(authenticationToken); | ||||
|         //登录日志 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user