From 79a968f425bfd7853e19475dd2ed1cbadc24d7a0 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Wed, 18 Mar 2020 16:05:26 -0400 Subject: [PATCH] Fix login.tmpl rendering This passes in the correct field named GitlabDisplayName. --- account.go | 16 ++++++++-------- pages/login.tmpl | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/account.go b/account.go index 04aa61d..3fbb1f2 100644 --- a/account.go +++ b/account.go @@ -302,14 +302,14 @@ func viewLogin(app *App, w http.ResponseWriter, r *http.Request) error { p := &struct { page.StaticPage - To string - Message template.HTML - Flashes []template.HTML - LoginUsername string - OauthSlack bool - OauthWriteAs bool - OauthGitlab bool - GitlabHost string + To string + Message template.HTML + Flashes []template.HTML + LoginUsername string + OauthSlack bool + OauthWriteAs bool + OauthGitlab bool + GitlabDisplayName string }{ pageForReq(app, r), r.FormValue("to"), diff --git a/pages/login.tmpl b/pages/login.tmpl index f08dbf7..6a75d13 100644 --- a/pages/login.tmpl +++ b/pages/login.tmpl @@ -55,7 +55,7 @@ hr.short { Sign in with Write.as {{ end }} {{ if .OauthGitlab }} - Sign in with {{ .GitlabDisplayName }} + Sign in with {{.GitlabDisplayName}} {{ end }}