Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fix: don't redirect to signup on first install when regular login is disabled (#14165)

Boris Rybalkin4c4ef5617cf8
diff --git a/src/documents/templates/account/login.html b/src/documents/templates/account/login.html
index c66fa6e44..5996c6cbb 100644
--- a/src/documents/templates/account/login.html
+++ b/src/documents/templates/account/login.html
@@ -15,7 +15,7 @@
{% endblock form_top_content %}
{% block form_content %}
- {% if FIRST_INSTALL %}
+ {% if FIRST_INSTALL and not DISABLE_REGULAR_LOGIN %}
<script type="text/javascript">
// forward to the signup page if no users exist
window.location.href = "{{ signup_url }}";