File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 4848 </div>
4949 </form>
5050 {{end}}{{/*if .EnablePasswordSignInForm*/}}
51- {{if and .OAuth2Providers .EnableOpenIDSignIn .EnablePasswordSignInForm}}
51+ {{$showOAuth2Methods := or .OAuth2Providers .EnableOpenIDSignIn}}
52+ {{if and $showOAuth2Methods .EnablePasswordSignInForm}}
5253 <div class="divider divider-text">{{ctx.Locale.Tr "sign_in_or"}}</div>
5354 {{end}}
54- {{if and .OAuth2Providers .EnableOpenIDSignIn }}
55+ {{if $showOAuth2Methods }}
5556 {{template "user/auth/oauth_container" .}}
5657 {{end}}
5758 </div>
Original file line number Diff line number Diff line change 4747 </button>
4848 </div>
4949 {{end}}
50-
51- {{if and .OAuth2Providers .EnableOpenIDSignIn }}
50+ {{$showOAuth2Methods := or .OAuth2Providers .EnableOpenIDSignIn}}
51+ {{if $showOAuth2Methods }}
5252 <div class="divider divider-text">{{ctx.Locale.Tr "sign_in_or"}}</div>
5353 {{template "user/auth/oauth_container" .}}
5454 {{end}}
You can’t perform that action at this time.
0 commit comments