|
@@ -57,11 +57,12 @@ public class ThirdUserloginService {
|
|
|
// 验证码校验
|
|
// 验证码校验
|
|
|
// validateCaptcha(username, code, uuid);
|
|
// validateCaptcha(username, code, uuid);
|
|
|
// 登录前置校验
|
|
// 登录前置校验
|
|
|
- sysLoginService.loginPreCheck(username, password);
|
|
|
|
|
|
|
+
|
|
|
// 用户验证
|
|
// 用户验证
|
|
|
Authentication authentication = null;
|
|
Authentication authentication = null;
|
|
|
try
|
|
try
|
|
|
{
|
|
{
|
|
|
|
|
+ sysLoginService.loginPreCheck(username, password);
|
|
|
UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(username, password);
|
|
UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(username, password);
|
|
|
AuthenticationContextHolder.setContext(authenticationToken);
|
|
AuthenticationContextHolder.setContext(authenticationToken);
|
|
|
// 该方法会去调用UserDetailsServiceImpl.loadUserByUsername
|
|
// 该方法会去调用UserDetailsServiceImpl.loadUserByUsername
|