mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-22 20:54:26 +08:00
fix(SmsCodeAuthenticationProvider.java): 修复手机短信验证码认证授权提示用户名或密码错误问题
This commit is contained in:
parent
c510751da3
commit
6a5555ec29
@ -46,7 +46,7 @@ public class SmsCodeAuthenticationProvider implements AuthenticationProvider {
|
||||
redisTemplate.delete(codeKey);
|
||||
}
|
||||
UserDetails userDetails = ((MemberUserDetailsServiceImpl) userDetailsService).loadUserByMobile(mobile);
|
||||
SmsCodeAuthenticationToken result = new SmsCodeAuthenticationToken(userDetails, new HashSet<>());
|
||||
SmsCodeAuthenticationToken result = new SmsCodeAuthenticationToken(userDetails, authentication.getCredentials(), new HashSet<>());
|
||||
result.setDetails(authentication.getDetails());
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user