mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add message if username / password combo is rejected
This commit is contained in:
parent
a444f21e64
commit
baa352ca98
@ -30,7 +30,7 @@
|
||||
border-radius: 15px;
|
||||
padding: 20px;
|
||||
padding-bottom: 35px;
|
||||
background-color: rgba(50, 50, 50, 0.5);
|
||||
background-color: rgba(50, 50, 50, 0.75);
|
||||
}
|
||||
|
||||
.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/fontawesome.js' %}"></script>
|
||||
|
||||
<style>
|
||||
.login-error {
|
||||
color: #F88;
|
||||
}
|
||||
</style>
|
||||
|
||||
<title>
|
||||
InvenTree
|
||||
</title>
|
||||
@ -55,7 +61,7 @@
|
||||
<div class='input-group-addon'>
|
||||
<span class='fas fa-user'></span>
|
||||
</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>
|
||||
@ -67,10 +73,16 @@
|
||||
<div class='input-group-addon'>
|
||||
<span class='fas fa-key'></span>
|
||||
</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>
|
||||
|
||||
{% if form.errors %}
|
||||
<div class='login-error'>
|
||||
<b>{% trans "Username / password combination is incorrect" %}</b>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<hr>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user