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

setting for sso login

This commit is contained in:
Matthias
2021-09-05 20:20:57 +02:00
parent 34a15ff51f
commit e255f2bf42
3 changed files with 12 additions and 1 deletions

View File

@@ -8,6 +8,7 @@
{% settings_value 'LOGIN_ENABLE_REG' as enable_reg %}
{% settings_value 'LOGIN_ENABLE_PWD_FORGOT' as enable_pwd_forgot %}
{% settings_value 'LOGIN_ENABLE_SSO' as enable_sso %}
<h1>{% trans "Sign In" %}</h1>
@@ -38,12 +39,13 @@ for a account and sign in below:{% endblocktrans %}</p>
</div>
</form>
{% if enable_sso %}
<br>
<h4 class="text-center">{% trans 'or use SSO' %}</h4>
<div>
{% include "socialaccount/snippets/provider_list.html" with process="login" %}
</div>
{% include "socialaccount/snippets/login_extra.html" %}
{% endif %}
{% endblock %}