Procházet zdrojové kódy

OIDC: Redirect to user home page after successful authentication

Frédéric Guillot před 2 roky
rodič
revize
bc317cfcd1
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 1 1
      internal/ui/middleware.go
  2. 1 1
      internal/ui/oauth2_callback.go

+ 1 - 1
internal/ui/middleware.go

@@ -257,6 +257,6 @@ func (m *middleware) handleAuthProxy(next http.Handler) http.Handler {
 			config.Opts.BasePath(),
 		))
 
-		html.Redirect(w, r, route.Path(m.router, "unread"))
+		html.Redirect(w, r, route.Path(m.router, user.DefaultHomePage))
 	})
 }

+ 1 - 1
internal/ui/oauth2_callback.go

@@ -149,5 +149,5 @@ func (h *handler) oauth2Callback(w http.ResponseWriter, r *http.Request) {
 		config.Opts.BasePath(),
 	))
 
-	html.Redirect(w, r, route.Path(h.router, "unread"))
+	html.Redirect(w, r, route.Path(h.router, user.DefaultHomePage))
 }