From c625fa277468478dada3638f476c5f024dcd0199 Mon Sep 17 00:00:00 2001 From: phil Date: Wed, 10 Feb 2021 01:32:09 +0000 Subject: [PATCH] Styling fuer Passwortaenderung --- htman/htman.py | 1 + htman/templates/layout.html | 8 ++++- htman/templates/manage_users.html | 2 +- htman/templates/password_change.html | 48 ++++++++++++++++------------ 4 files changed, 36 insertions(+), 23 deletions(-) diff --git a/htman/htman.py b/htman/htman.py index 5f148f7..4141780 100644 --- a/htman/htman.py +++ b/htman/htman.py @@ -65,6 +65,7 @@ def change_password_get(zone=None): @bottle.route('/password', method='POST') def change_password(zone=None): + zone = bottle.request.forms.get('zone') username = bottle.request.forms.get('username') old_password = bottle.request.forms.get('old_password') new_password = bottle.request.forms.get('new_password') diff --git a/htman/templates/layout.html b/htman/templates/layout.html index 644da58..d442a0d 100644 --- a/htman/templates/layout.html +++ b/htman/templates/layout.html @@ -15,7 +15,13 @@
diff --git a/htman/templates/manage_users.html b/htman/templates/manage_users.html index 75a0002..0e5bb47 100644 --- a/htman/templates/manage_users.html +++ b/htman/templates/manage_users.html @@ -11,7 +11,7 @@

Manage user access for wiki: ${zone}

-
${success}
+
diff --git a/htman/templates/password_change.html b/htman/templates/password_change.html index ca27327..7b7622f 100644 --- a/htman/templates/password_change.html +++ b/htman/templates/password_change.html @@ -10,30 +10,36 @@

Change user password

-
${error}
-
${success}
+ + +
+
- - - - - - - - - - - - - - - - - -
- +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+