2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-08 21:00:55 +00:00

setting to enable signup

This commit is contained in:
Matthias
2021-09-05 20:17:49 +02:00
parent 7fa87edda7
commit 34a15ff51f
3 changed files with 19 additions and 1 deletions

View File

@@ -6,10 +6,12 @@
{% block content %}
{% settings_value 'LOGIN_ENABLE_REG' as enable_reg %}
{% settings_value 'LOGIN_ENABLE_PWD_FORGOT' as enable_pwd_forgot %}
<h1>{% trans "Sign In" %}</h1>
{% if enable_reg %}
{% get_providers as socialaccount_providers %}
{% if socialaccount_providers %}
<p>{% blocktrans with site.name as site_name %}Please sign in with one
@@ -19,6 +21,7 @@ for a account and sign in below:{% endblocktrans %}</p>
<p>{% blocktrans %}If you have not created an account yet, then please
<a href="{{ signup_url }}">sign up</a> first.{% endblocktrans %}</p>
{% endif %}
{% endif %}
<form class="login" method="POST" action="{% url 'account_login' %}">
{% csrf_token %}