Add openid button

This commit is contained in:
Joshua 2024-04-08 00:15:06 +05:30
parent 3c0b517389
commit efda0958d0

View File

@ -49,22 +49,26 @@
</div>
{{end}}
{{if .OAuth2Providers}}
<div class="divider divider-text">
{{ctx.Locale.Tr "sign_in_or"}}
</div>
<div id="oauth2-login-navigator" class="tw-py-1">
<div class="tw-flex tw-flex-col tw-justify-center">
<div id="oauth2-login-navigator-inner" class="tw-flex tw-flex-col tw-flex-wrap tw-items-center tw-gap-2">
{{if .OAuth2Providers}}
{{range $provider := .OAuth2Providers}}
<a class="{{$provider.Name}} ui button tw-flex tw-items-center tw-justify-center tw-py-2 tw-w-full oauth-login-link" href="{{AppSubUrl}}/user/oauth2/{{$provider.DisplayName}}">
{{$provider.IconHTML 28}}
{{ctx.Locale.Tr "sign_in_with_provider" $provider.DisplayName}}
</a>
{{end}}
{{end}}
<a class="openid ui button tw-flex tw-items-center tw-justify-center tw-py-2 tw-w-full oauth-login-link" href="{{AppSubUrl}}/user/login/openid">
{{svg "fontawesome-openid" 28}}&nbsp;
{{ctx.Locale.Tr "sign_in_with_provider" "OpenID"}}
</a>
</div>
</div>
</div>
{{end}}
</form>
</div>