3
0

Properly cast provider name to label

This commit is contained in:
Denis Arh
2019-07-15 07:51:38 +02:00
parent 30400754ef
commit 5f7bd696cf
+5 -2
View File
@@ -81,14 +81,17 @@ func (s authSettings) Format() map[string]interface{} {
)
for p := range goth.GetProviders() {
label := p
if strings.Index(p, "openid-connect.") == 0 {
label = strings.SplitN(p, ".", 2)[1]
}
switch label {
case "corteza-iam":
label = "Corteza Unify"
case "corteza-iam", "corteza", "corteza-one":
label = "Corteza One"
case "crust-iam", "crust", "crust-unify":
label = "Crust Unify"
case "facebook":
label = "Facebook"
case "gplus":