From e667719dd7a4a0f59e81d28edb0509404087e927 Mon Sep 17 00:00:00 2001 From: John Niang Date: Tue, 8 Oct 2024 22:10:54 +0800 Subject: [PATCH] Redirect to user center after authenticating successfully (#6797) #### What type of PR is this? /kind cleanup /area core /milestone 2.20.x #### What this PR does / why we need it: This PR changes the redirect URI to `/uc` instead of `/console` after authenticating successfully. #### Does this PR introduce a user-facing change? ```release-note None ``` --- .../security/authentication/login/UsernamePasswordHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/src/main/java/run/halo/app/security/authentication/login/UsernamePasswordHandler.java b/application/src/main/java/run/halo/app/security/authentication/login/UsernamePasswordHandler.java index a04a90208a..9fb3443529 100644 --- a/application/src/main/java/run/halo/app/security/authentication/login/UsernamePasswordHandler.java +++ b/application/src/main/java/run/halo/app/security/authentication/login/UsernamePasswordHandler.java @@ -46,7 +46,7 @@ public class UsernamePasswordHandler implements ServerAuthenticationSuccessHandl private RememberMeRequestCache rememberMeRequestCache = new WebSessionRememberMeRequestCache(); private final ServerAuthenticationSuccessHandler defaultSuccessHandler = - new RedirectServerAuthenticationSuccessHandler("/console/"); + new RedirectServerAuthenticationSuccessHandler("/uc"); public UsernamePasswordHandler(ServerResponse.Context context, MessageSource messageSource, LoginHandlerEnhancer loginHandlerEnhancer) {