Skip to content

Commit 3205915

Browse files
Fix SSPI button visibility when SSPI is the only enabled method (#32841)
1 parent 1a07ebe commit 3205915

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/user/auth/signin_inner.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
</div>
4949
</form>
5050
{{end}}{{/*if .EnablePasswordSignInForm*/}}
51-
{{$showOAuth2Methods := or .OAuth2Providers .EnableOpenIDSignIn}}
51+
{{$showOAuth2Methods := or .OAuth2Providers .EnableOpenIDSignIn .EnableSSPI}}
5252
{{if and $showOAuth2Methods .EnablePasswordSignInForm}}
5353
<div class="divider divider-text">{{ctx.Locale.Tr "sign_in_or"}}</div>
5454
{{end}}

templates/user/auth/signup_inner.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
</button>
4848
</div>
4949
{{end}}
50-
{{$showOAuth2Methods := or .OAuth2Providers .EnableOpenIDSignIn}}
50+
{{$showOAuth2Methods := or .OAuth2Providers .EnableOpenIDSignIn .EnableSSPI}}
5151
{{if $showOAuth2Methods}}
5252
<div class="divider divider-text">{{ctx.Locale.Tr "sign_in_or"}}</div>
5353
{{template "user/auth/oauth_container" .}}

0 commit comments

Comments
 (0)