|
|
@@ -33,13 +33,13 @@ func (of *OauthForm) ToOauth() *model.Oauth {
|
|
33
|
33
|
if op == "" {
|
|
34
|
34
|
switch of.OauthType {
|
|
35
|
35
|
case model.OauthTypeGithub:
|
|
36
|
|
- of.Op = "GitHub"
|
|
|
36
|
+ of.Op = model.OauthNameGithub
|
|
37
|
37
|
case model.OauthTypeGoogle:
|
|
38
|
|
- of.Op = "Google"
|
|
|
38
|
+ of.Op = model.OauthNameGoogle
|
|
39
|
39
|
case model.OauthTypeOidc:
|
|
40
|
|
- of.Op = "OIDC"
|
|
|
40
|
+ of.Op = model.OauthNameOidc
|
|
41
|
41
|
case model.OauthTypeWebauth:
|
|
42
|
|
- of.Op = "WebAuth"
|
|
|
42
|
+ of.Op = model.OauthNameWebauth
|
|
43
|
43
|
default:
|
|
44
|
44
|
of.Op = of.OauthType
|
|
45
|
45
|
}
|