mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-07 10:05:48 +08:00
redirect to / after login
This commit is contained in:
@@ -407,7 +407,7 @@ func (srv *Server) authMW(next http.Handler) http.Handler {
|
||||
|
||||
if strings.HasPrefix(r.URL.Path, "/login") {
|
||||
level.Debug(logger).Log("msg", "redirect session to dashboard page", "session_id", sess.ID)
|
||||
http.Redirect(w, r, "/dashboard", http.StatusFound)
|
||||
http.Redirect(w, r, "/", http.StatusFound)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user