summaryrefslogtreecommitdiffstats
path: root/ogcp/forms
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-04-27 17:21:09 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-04-27 17:34:36 +0200
commit72c10e15298aef311eed2aeb4774bf78029ea075 (patch)
tree19ecae9e6c809118af0c58af6c21c135496a08dc /ogcp/forms
parenteb8ddd236acac593cce7c341d84a5ab3da834aff (diff)
Add 'Delete user' to Users sectionv0.9.2
Creates "Delete user" form. The user to be deleted is selected from the sidebar in Users section.
Diffstat (limited to 'ogcp/forms')
-rw-r--r--ogcp/forms/auth.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/ogcp/forms/auth.py b/ogcp/forms/auth.py
index b10d8fe..edc5d9a 100644
--- a/ogcp/forms/auth.py
+++ b/ogcp/forms/auth.py
@@ -57,3 +57,12 @@ class UserForm(FlaskForm):
submit_btn = SubmitField(
label=_l('Submit')
)
+
+
+class DeleteUserForm(FlaskForm):
+ username = HiddenField(
+ validators=[InputRequired()]
+ )
+ submit_btn = SubmitField(
+ label=_l('Submit')
+ )