Feature: automatic sso redirect (#7168)

This commit is contained in:
shamoon
2024-07-08 15:38:23 -07:00
committed by GitHub
parent ada283441c
commit c03aa03ac2
8 changed files with 54 additions and 13 deletions

View File

@@ -12,4 +12,13 @@
<div class="d-grid mt-3">
<button class="btn btn-lg btn-primary" type="submit">{% translate "Continue" %}</button>
</div>
{% if REDIRECT_LOGIN_TO_SSO %}
<script type="text/javascript">
const form = document.getElementById('form-account');
if (form) {
form.submit();
}
</script>
{% endif %}
{% endblock form_content %}