1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-11-29 22:48:19 +02:00

template updates to display version

This commit is contained in:
Jehiah Czebotar
2014-11-09 22:01:50 -05:00
parent a5f96b1754
commit a49eadadeb
2 changed files with 22 additions and 0 deletions

View File

@@ -229,10 +229,12 @@ func (p *OauthProxy) SignInPage(rw http.ResponseWriter, req *http.Request, code
SignInMessage string
Htpasswd bool
Redirect string
Version string
}{
SignInMessage: p.SignInMessage,
Htpasswd: p.HtpasswdFile != nil,
Redirect: req.URL.RequestURI(),
Version: VERSION,
}
templates.ExecuteTemplate(rw, "sign_in.html", t)
}