mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-24 13:02:13 +00:00
SEC-307: Preserve result of AuthenticationManager.authenticate(Authentication).
This commit is contained in:
parent
3b9a8dc53e
commit
1fa89e99c4
@ -106,7 +106,7 @@ public class RememberMeProcessingFilter implements Filter, InitializingBean, App
|
||||
if (rememberMeAuth != null) {
|
||||
// Attempt authenticaton via AuthenticationManager
|
||||
try {
|
||||
authenticationManager.authenticate(rememberMeAuth);
|
||||
rememberMeAuth = authenticationManager.authenticate(rememberMeAuth);
|
||||
|
||||
// Store to SecurityContextHolder
|
||||
SecurityContextHolder.getContext().setAuthentication(rememberMeAuth);
|
||||
|
Loading…
x
Reference in New Issue
Block a user