2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 21:45:39 +00:00

Add message if username / password combo is rejected

This commit is contained in:
Oliver Walters
2021-02-16 22:34:24 +11:00
parent a444f21e64
commit baa352ca98
6 changed files with 2249 additions and 1612 deletions
InvenTree
InvenTree
static
locale
de
en
LC_MESSAGES
es
LC_MESSAGES
templates
registration

@ -30,7 +30,7 @@
border-radius: 15px; border-radius: 15px;
padding: 20px; padding: 20px;
padding-bottom: 35px; padding-bottom: 35px;
background-color: rgba(50, 50, 50, 0.5); background-color: rgba(50, 50, 50, 0.75);
} }
.login-header { .login-header {

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -21,6 +21,12 @@
<script type='text/javascript' src="{% static 'fontawesome/js/brands.js' %}"></script> <script type='text/javascript' src="{% static 'fontawesome/js/brands.js' %}"></script>
<script type='text/javascript' src="{% static 'fontawesome/js/fontawesome.js' %}"></script> <script type='text/javascript' src="{% static 'fontawesome/js/fontawesome.js' %}"></script>
<style>
.login-error {
color: #F88;
}
</style>
<title> <title>
InvenTree InvenTree
</title> </title>
@ -55,7 +61,7 @@
<div class='input-group-addon'> <div class='input-group-addon'>
<span class='fas fa-user'></span> <span class='fas fa-user'></span>
</div> </div>
<input type="text" name="username" autofocus autocapitalize="none" autocomplete="username" maxlength="150" class="textinput textInput form-control" required id="id_username"> <input type="text" name="username" autofocus autocapitalize="none" autocomplete="username" maxlength="150" class="textinput textInput form-control" required id="id_username" placeholder='{% trans "Enter username" %}'>
</div> </div>
</div> </div>
</div> </div>
@ -67,10 +73,16 @@
<div class='input-group-addon'> <div class='input-group-addon'>
<span class='fas fa-key'></span> <span class='fas fa-key'></span>
</div> </div>
<input type="password" name="password" autocomplete="current-password" class="textinput textInput form-control" required id="id_password"> <input type="password" name="password" autocomplete="current-password" class="textinput textInput form-control" required id="id_password" placeholder='{% trans "Enter password" %}'>
</div> </div>
</div> </div>
</div> </div>
{% if form.errors %}
<div class='login-error'>
<b>{% trans "Username / password combination is incorrect" %}</b>
</div>
{% endif %}
<hr> <hr>