OIDC: Redirect to user home page after successful authentication

This commit is contained in:
Frédéric Guillot 2023-11-07 19:29:19 +00:00
parent 00a64710c2
commit bc317cfcd1
2 changed files with 2 additions and 2 deletions

View File

@ -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))
})
}

View File

@ -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))
}