Compare commits
2 Commits
138e818429
...
eab0b72431
Author | SHA1 | Date |
---|---|---|
wpetit | eab0b72431 | |
wpetit | 3525b4bcb5 |
7
Makefile
7
Makefile
|
@ -1,5 +1,8 @@
|
|||
build: clean
|
||||
misc/script/build
|
||||
build: clean generate
|
||||
CGO_ENABLED=0 misc/script/build
|
||||
|
||||
generate:
|
||||
go generate ./...
|
||||
|
||||
clean:
|
||||
rm -rf bin
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue