OIDC: Redirect to user home page after successful authentication
This commit is contained in:
parent
00a64710c2
commit
bc317cfcd1
2 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
})
|
||||
}
|
||||
|
|
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue