fix: trim login url when displaying error message

This commit is contained in:
wpetit 2021-09-27 16:21:33 +02:00
parent 138e818429
commit 3525b4bcb5
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ func newLoginEndHandler(ra oa2LoginReqAcceptor, auther authenticator, tmplRender
data := LoginTmplData{
CSRFToken: nosurf.Token(r),
Challenge: challenge,
LoginURL: r.URL.String(),
LoginURL: strings.TrimPrefix(r.URL.String(), "/"),
}
username, password := r.Form.Get("username"), r.Form.Get("password")