Compare commits
2 Commits
138e818429
...
eab0b72431
Author | SHA1 | Date |
---|---|---|
wpetit | eab0b72431 | |
wpetit | 3525b4bcb5 |
7
Makefile
7
Makefile
|
@ -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
|
||||||
|
|
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue