Merge pull request #473 from jmcarp/oidc-name

Add OpenID Connect provider name.
This commit is contained in:
Jehiah Czebotar 2017-10-13 09:10:44 -04:00 committed by GitHub
commit b7f9438b8a
2 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ type OIDCProvider struct {
} }
func NewOIDCProvider(p *ProviderData) *OIDCProvider { func NewOIDCProvider(p *ProviderData) *OIDCProvider {
p.ProviderName = "OpenID Connect"
return &OIDCProvider{ProviderData: p} return &OIDCProvider{ProviderData: p}
} }

View File

@ -115,7 +115,7 @@ func getTemplates() *template.Template {
{{ if .SignInMessage }} {{ if .SignInMessage }}
<p>{{.SignInMessage}}</p> <p>{{.SignInMessage}}</p>
{{ end}} {{ end}}
<button type="submit" class="btn">Sign in with a {{.ProviderName}} Account</button><br/> <button type="submit" class="btn">Sign in with {{.ProviderName}}</button><br/>
</form> </form>
</div> </div>