Redirect aint perfect and username only
This commit is contained in:
@@ -30,8 +30,10 @@ func login(oauth2server *url.URL, w http.ResponseWriter, r *http.Request) error
|
||||
url.Scheme = "http"
|
||||
}
|
||||
cookie := &http.Cookie{
|
||||
Name: oauth2.REDIRECT,
|
||||
Value: url.String(),
|
||||
Name: oauth2.REDIRECT,
|
||||
Value: url.String(),
|
||||
SameSite: http.SameSiteLaxMode,
|
||||
Path: "/authorize",
|
||||
}
|
||||
http.SetCookie(w, cookie)
|
||||
http.Redirect(w, r, oauth2server.String(), http.StatusSeeOther)
|
||||
|
||||
Reference in New Issue
Block a user