Skip to content

Commit 526cfac

Browse files
authored
verify the login dict in the form (#265)
* Update versions * Add error highlighting * Released version * Black it
1 parent 06279bf commit 526cfac

File tree

8 files changed

+52
-48
lines changed

8 files changed

+52
-48
lines changed

frontend/admin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Module that defines some basic properties of the app.
33
"""
4+
45
from django.contrib import admin
56
from .models import Impressum
67

frontend/apps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Module that configues the app.
33
"""
4+
45
from django.apps import AppConfig
56

67

frontend/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Module that connects the view functions with a specific path url.
33
"""
4+
45
from django.urls import path
56
from frontend import views
67

frontend/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Module that defines the user api.
22
"""
3+
34
from datetime import datetime
45
import uuid
56
import json

poetry.lock

Lines changed: 38 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ django-allauth = "^0.61.1"
1313
dj-database-url = "^2.1.0"
1414
python-decouple = "^3.8"
1515
django-csp = "^3.7"
16-
django-qlued = "^0.1.0"
16+
django-qlued = "^0.2.0"
1717

1818

1919
[tool.poetry.group.prod]
@@ -36,7 +36,7 @@ mike = "^2.0.0"
3636
django-stubs = {version = "^4.2.3", extras = ["compatible-mypy"]}
3737
pylint = "^3.0.3"
3838
pylint-django = "^2.5.5"
39-
black = "^23.7.0"
39+
black = "^24.1.0"
4040
pre-commit = "^3.6.0"
4141

4242
[build-system]

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dj-database-url==2.1.0 ; python_version >= "3.10" and python_version < "4.0"
99
django-allauth==0.61.1 ; python_version >= "3.10" and python_version < "4.0"
1010
django-csp==3.7 ; python_version >= "3.10" and python_version < "4.0"
1111
django-ninja==1.1.0 ; python_version >= "3.10" and python_version < "4.0"
12-
django-qlued==0.1.1 ; python_version >= "3.10" and python_version < "4.0"
12+
django-qlued==0.2.0 ; python_version >= "3.10" and python_version < "4.0"
1313
django==5.0.2 ; python_version >= "3.10" and python_version < "4.0"
1414
dnspython==2.5.0 ; python_version >= "3.10" and python_version < "4.0"
1515
dropbox==11.36.2 ; python_version >= "3.10" and python_version < "4.0"
@@ -26,16 +26,16 @@ pyjwt[crypto]==2.8.0 ; python_version >= "3.10" and python_version < "4.0"
2626
pymongo==4.6.1 ; python_version >= "3.10" and python_version < "4.0"
2727
python-decouple==3.8 ; python_version >= "3.10" and python_version < "4.0"
2828
python3-openid==3.2.0 ; python_version >= "3.10" and python_version < "4.0"
29-
pytz==2023.4 ; python_version >= "3.10" and python_version < "4.0"
29+
pytz==2024.1 ; python_version >= "3.10" and python_version < "4.0"
3030
regex==2023.12.25 ; python_version >= "3.10" and python_version < "4.0"
3131
requests-oauthlib==1.3.1 ; python_version >= "3.10" and python_version < "4.0"
3232
requests==2.31.0 ; python_version >= "3.10" and python_version < "4.0"
33-
setuptools==69.0.3 ; python_version >= "3.10" and python_version < "4.0"
33+
setuptools==69.1.0 ; python_version >= "3.10" and python_version < "4.0"
3434
six==1.16.0 ; python_version >= "3.10" and python_version < "4.0"
3535
sqlparse==0.4.4 ; python_version >= "3.10" and python_version < "4.0"
3636
sqooler==0.5.0 ; python_version >= "3.10" and python_version < "4.0"
3737
stone==3.3.1 ; python_version >= "3.10" and python_version < "4.0"
3838
typing-extensions==4.9.0 ; python_version >= "3.10" and python_version < "4.0"
39-
tzdata==2023.4 ; python_version >= "3.10" and python_version < "4.0" and sys_platform == "win32"
39+
tzdata==2024.1 ; python_version >= "3.10" and python_version < "4.0" and sys_platform == "win32"
4040
urllib3==2.2.0 ; python_version >= "3.10" and python_version < "4.0"
4141
whitenoise==6.6.0 ; python_version >= "3.10" and python_version < "4.0"

templates/frontend/add_storage_provider.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h2>Fill out the following</h2>
2222
{% if form.storage_type.errors %}
2323
<ul>
2424
{% for error in form.storage_type.errors %}
25-
<li>{{ error }}</li>
25+
<li class="text-danger">{{ error }}</li>
2626
{% endfor %}
2727
</ul>
2828
{% endif %}
@@ -31,7 +31,7 @@ <h2>Fill out the following</h2>
3131
{% if form.name.errors %}
3232
<ul>
3333
{% for error in form.name.errors %}
34-
<li>{{ error }}</li>
34+
<li class="text-danger">{{ error }}</li>
3535
{% endfor %}
3636
</ul>
3737
{% endif %}
@@ -40,7 +40,7 @@ <h2>Fill out the following</h2>
4040
{% if form.description.errors %}
4141
<ul>
4242
{% for error in form.description.errors %}
43-
<li>{{ error }}</li>
43+
<li class="text-danger">{{ error }}</li>
4444
{% endfor %}
4545
</ul>
4646
{% endif %}
@@ -50,7 +50,7 @@ <h2>Fill out the following</h2>
5050
{% if form.login.errors %}
5151
<ul>
5252
{% for error in form.login.errors %}
53-
<li>{{ error }}</li>
53+
<li class="text-danger">{{ error }}</li>
5454
{% endfor %}
5555
</ul>
5656
{% endif %}

0 commit comments

Comments
 (0)