mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-20 13:48:45 +08:00
Fix SSPI button visibility when SSPI is the only enabled method (#32841)
This commit is contained in:
parent
1a07ebe549
commit
32059158da
|
@ -48,7 +48,7 @@
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{{end}}{{/*if .EnablePasswordSignInForm*/}}
|
{{end}}{{/*if .EnablePasswordSignInForm*/}}
|
||||||
{{$showOAuth2Methods := or .OAuth2Providers .EnableOpenIDSignIn}}
|
{{$showOAuth2Methods := or .OAuth2Providers .EnableOpenIDSignIn .EnableSSPI}}
|
||||||
{{if and $showOAuth2Methods .EnablePasswordSignInForm}}
|
{{if and $showOAuth2Methods .EnablePasswordSignInForm}}
|
||||||
<div class="divider divider-text">{{ctx.Locale.Tr "sign_in_or"}}</div>
|
<div class="divider divider-text">{{ctx.Locale.Tr "sign_in_or"}}</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{$showOAuth2Methods := or .OAuth2Providers .EnableOpenIDSignIn}}
|
{{$showOAuth2Methods := or .OAuth2Providers .EnableOpenIDSignIn .EnableSSPI}}
|
||||||
{{if $showOAuth2Methods}}
|
{{if $showOAuth2Methods}}
|
||||||
<div class="divider divider-text">{{ctx.Locale.Tr "sign_in_or"}}</div>
|
<div class="divider divider-text">{{ctx.Locale.Tr "sign_in_or"}}</div>
|
||||||
{{template "user/auth/oauth_container" .}}
|
{{template "user/auth/oauth_container" .}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user