mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-28 00:17:00 +00:00
Fix oauth2 login methods (#32698)
Regression of #32687 It should use "or" but not "and", otherwise the oauth2 methods won't show when no ENABLE_OPENID_SIGNIN
This commit is contained in:
parent
690d07470c
commit
171edfc793
@ -48,10 +48,11 @@
|
||||
</div>
|
||||
</form>
|
||||
{{end}}{{/*if .EnablePasswordSignInForm*/}}
|
||||
{{if and .OAuth2Providers .EnableOpenIDSignIn .EnablePasswordSignInForm}}
|
||||
{{$showOAuth2Methods := or .OAuth2Providers .EnableOpenIDSignIn}}
|
||||
{{if and $showOAuth2Methods .EnablePasswordSignInForm}}
|
||||
<div class="divider divider-text">{{ctx.Locale.Tr "sign_in_or"}}</div>
|
||||
{{end}}
|
||||
{{if and .OAuth2Providers .EnableOpenIDSignIn}}
|
||||
{{if $showOAuth2Methods}}
|
||||
{{template "user/auth/oauth_container" .}}
|
||||
{{end}}
|
||||
</div>
|
||||
|
@ -47,8 +47,8 @@
|
||||
</button>
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
{{if and .OAuth2Providers .EnableOpenIDSignIn}}
|
||||
{{$showOAuth2Methods := or .OAuth2Providers .EnableOpenIDSignIn}}
|
||||
{{if $showOAuth2Methods}}
|
||||
<div class="divider divider-text">{{ctx.Locale.Tr "sign_in_or"}}</div>
|
||||
{{template "user/auth/oauth_container" .}}
|
||||
{{end}}
|
||||
|
Loading…
Reference in New Issue
Block a user