Skip to content

Commit

Permalink
Merge pull request #304 from ClusterCockpit/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
moebiusband73 authored Nov 28, 2024
2 parents fcb6db0 + e2efe71 commit d1207ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,10 @@ func (auth *Authentication) Login(

if r.FormValue("redirect") != "" {
http.RedirectHandler(r.FormValue("redirect"), http.StatusFound).ServeHTTP(rw, r.WithContext(ctx))
} else {
http.RedirectHandler(r.FormValue("/"), http.StatusFound).ServeHTTP(rw, r.WithContext(ctx))
return
}

http.RedirectHandler("/", http.StatusFound).ServeHTTP(rw, r.WithContext(ctx))
return
}

Expand Down

0 comments on commit d1207ad

Please sign in to comment.