Fix SSPI button visibility when SSPI is the only enabled method (#32841)

pull/32838/head^2
mevius4 2 months ago committed by GitHub
parent 1a07ebe549
commit 32059158da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      templates/user/auth/signin_inner.tmpl
  2. 2
      templates/user/auth/signup_inner.tmpl

@ -48,7 +48,7 @@
</div>
</form>
{{end}}{{/*if .EnablePasswordSignInForm*/}}
{{$showOAuth2Methods := or .OAuth2Providers .EnableOpenIDSignIn}}
{{$showOAuth2Methods := or .OAuth2Providers .EnableOpenIDSignIn .EnableSSPI}}
{{if and $showOAuth2Methods .EnablePasswordSignInForm}}
<div class="divider divider-text">{{ctx.Locale.Tr "sign_in_or"}}</div>
{{end}}

@ -47,7 +47,7 @@
</button>
</div>
{{end}}
{{$showOAuth2Methods := or .OAuth2Providers .EnableOpenIDSignIn}}
{{$showOAuth2Methods := or .OAuth2Providers .EnableOpenIDSignIn .EnableSSPI}}
{{if $showOAuth2Methods}}
<div class="divider divider-text">{{ctx.Locale.Tr "sign_in_or"}}</div>
{{template "user/auth/oauth_container" .}}

Loading…
Cancel
Save