Merge pull request #304 from ClusterCockpit/dev

Dev
This commit is contained in:
Jan Eitzinger 2024-11-28 15:23:02 +01:00 committed by GitHub
commit d1207ad80e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -244,9 +244,10 @@ func (auth *Authentication) Login(
if r.FormValue("redirect") != "" { if r.FormValue("redirect") != "" {
http.RedirectHandler(r.FormValue("redirect"), http.StatusFound).ServeHTTP(rw, r.WithContext(ctx)) http.RedirectHandler(r.FormValue("redirect"), http.StatusFound).ServeHTTP(rw, r.WithContext(ctx))
} else { return
http.RedirectHandler(r.FormValue("/"), http.StatusFound).ServeHTTP(rw, r.WithContext(ctx))
} }
http.RedirectHandler("/", http.StatusFound).ServeHTTP(rw, r.WithContext(ctx))
return return
} }