From 6dafedd0f308de43f94baea1a3f6902ea04cdc36 Mon Sep 17 00:00:00 2001
From: Oliver
Date: Thu, 18 Nov 2021 20:55:10 +1100
Subject: [PATCH] Adjust login screen
---
InvenTree/templates/account/login.html | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/InvenTree/templates/account/login.html b/InvenTree/templates/account/login.html
index fbe48224b4..6e62560bfa 100644
--- a/InvenTree/templates/account/login.html
+++ b/InvenTree/templates/account/login.html
@@ -1,5 +1,6 @@
{% extends "account/base.html" %}
+{% load inventree_extras %}
{% load i18n account socialaccount crispy_forms_tags inventree_extras %}
{% block head_title %}{% trans "Sign In" %}{% endblock %}
@@ -10,6 +11,7 @@
{% settings_value 'LOGIN_ENABLE_PWD_FORGOT' as enable_pwd_forgot %}
{% settings_value 'LOGIN_ENABLE_SSO' as enable_sso %}
{% mail_configured as mail_conf %}
+{% inventree_demo_mode as demo %}
{% trans "Sign In" %}
@@ -36,9 +38,16 @@ for a account and sign in below:{% endblocktrans %}
{% trans "Sign In" %}
- {% if mail_conf and enable_pwd_forgot %}
+ {% if mail_conf and enable_pwd_forgot and not demo %}
{% trans "Forgot Password?" %}
{% endif %}
+ {% if demo %}
+
+
+
+ {% endif %}
{% if enable_sso %}