From 61bd6bc4bac0cb930304b6fd7dfadd24e5318914 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Tue, 28 Jun 2022 12:31:59 +0200 Subject: 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") --- ogcp/templates/auth/add_user.html | 11 +---------- ogcp/templates/auth/login.html | 11 +---------- 2 files changed, 2 insertions(+), 20 deletions(-) (limited to 'ogcp/templates/auth') diff --git a/ogcp/templates/auth/add_user.html b/ogcp/templates/auth/add_user.html index af44caa..91866fb 100644 --- a/ogcp/templates/auth/add_user.html +++ b/ogcp/templates/auth/add_user.html @@ -12,15 +12,6 @@ {{ wtf.quick_form(form, action=url_for('user_add_post'), method='post', - button_map={'submit_btn':'primary'}, - id='user-form') }} - - + button_map={'submit_btn':'primary'}) }} {% endblock %} diff --git a/ogcp/templates/auth/login.html b/ogcp/templates/auth/login.html index 2b6cce9..20f6f8c 100644 --- a/ogcp/templates/auth/login.html +++ b/ogcp/templates/auth/login.html @@ -15,8 +15,7 @@ {{ wtf.quick_form(form, method='post', form_type='basic', - button_map={'submit_btn':'primary'}, - id='login-form') }} + button_map={'submit_btn':'primary'}) }} @@ -24,12 +23,4 @@ - - {% endblock %} -- cgit v1.2.3-18-g5258