Skip to content

Commit

Permalink
[release-2.17] Fix the problem where automatic login using remember-m…
Browse files Browse the repository at this point in the history
…e token could fail (#6330)

Signed-off-by: JohnNiang <[email protected]>
Co-authored-by: JohnNiang <[email protected]>
  • Loading branch information
halo-dev-bot and JohnNiang authored Jul 15, 2024
1 parent aadaf3c commit 6d4bedd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ protected Mono<UserDetails> processAutoLoginCookie(String[] cookieTokens,
log.debug("Refreshing persistent login token for user '{}', series '{}'",
token.getUsername(), token.getSeries());
var newToken = new PersistentRememberMeToken(token.getUsername(), token.getSeries(),
generateTokenData(), new Date());
token.getTokenValue(), new Date());
return Mono.just(newToken);
})
.flatMap(newToken -> updateToken(newToken)
Expand Down

0 comments on commit 6d4bedd

Please sign in to comment.