summaryrefslogtreecommitdiffstats
path: root/ogcp/forms/auth.py
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-06-28 12:31:59 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-06-30 09:26:18 +0200
commit61bd6bc4bac0cb930304b6fd7dfadd24e5318914 (patch)
tree88fdbbafba634d2052a36a4fe260b11864f378af /ogcp/forms/auth.py
parent06bcbe40a3caf76df062cbb883a0ac9e5fd2c723 (diff)
Move password hashing to the backend
This patch moves login password hashing from the frontend/javascript to the backend/flask. This patch moves password hashing of login and user management forms. Related commits: * c7b0024 ("Add password hashing") * 661254b ("Add 'Add user' to Users section")
Diffstat (limited to 'ogcp/forms/auth.py')
-rw-r--r--ogcp/forms/auth.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/ogcp/forms/auth.py b/ogcp/forms/auth.py
index edc5d9a..526fdb0 100644
--- a/ogcp/forms/auth.py
+++ b/ogcp/forms/auth.py
@@ -21,8 +21,6 @@ class LoginForm(FlaskForm):
)
pwd = PasswordField(
label=_l('Password'),
- )
- pwd_hash = HiddenField(
validators=[InputRequired()]
)
submit_btn = SubmitField(
@@ -37,15 +35,11 @@ class UserForm(FlaskForm):
)
pwd = PasswordField(
label=_l('Password'),
- )
- pwd_hash = HiddenField(
- validators=[InputRequired()]
+ validators=[InputRequired()],
)
pwd_confirm = PasswordField(
label=_l('Repeat password'),
- )
- pwd_hash_confirm = HiddenField(
- validators=[InputRequired()]
+ validators=[InputRequired()],
)
admin = BooleanField(
label=_l('Administrator'),