Compare commits

...

2 Commits

2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,8 @@
build: clean build: clean generate
misc/script/build CGO_ENABLED=0 misc/script/build
generate:
go generate ./...
clean: clean:
rm -rf bin rm -rf bin

View File

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