mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-14 00:26:21 +00:00
Feature: automatic sso redirect (#7168)
This commit is contained in:
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user