File tree 2 files changed +5
-4
lines changed 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 48
48
</div>
49
49
</form>
50
50
{{end}}{{/*if .EnablePasswordSignInForm*/}}
51
- {{if and .OAuth2Providers .EnableOpenIDSignIn .EnablePasswordSignInForm}}
51
+ {{$showOAuth2Methods := or .OAuth2Providers .EnableOpenIDSignIn}}
52
+ {{if and $showOAuth2Methods .EnablePasswordSignInForm}}
52
53
<div class="divider divider-text">{{ctx.Locale.Tr "sign_in_or"}}</div>
53
54
{{end}}
54
- {{if and .OAuth2Providers .EnableOpenIDSignIn }}
55
+ {{if $showOAuth2Methods }}
55
56
{{template "user/auth/oauth_container" .}}
56
57
{{end}}
57
58
</div>
Original file line number Diff line number Diff line change 47
47
</button>
48
48
</div>
49
49
{{end}}
50
-
51
- {{if and .OAuth2Providers .EnableOpenIDSignIn }}
50
+ {{$showOAuth2Methods := or .OAuth2Providers .EnableOpenIDSignIn}}
51
+ {{if $showOAuth2Methods }}
52
52
<div class="divider divider-text">{{ctx.Locale.Tr "sign_in_or"}}</div>
53
53
{{template "user/auth/oauth_container" .}}
54
54
{{end}}
You can’t perform that action at this time.
0 commit comments