diff options
author | Marian Sigler <m@qjym.de> | 2013-05-09 23:49:08 +0200 |
---|---|---|
committer | Marian Sigler <m@qjym.de> | 2013-05-09 23:49:08 +0200 |
commit | 7da85c36293a0821cf009724aa135b8343c882e4 (patch) | |
tree | abd8b2d253f47244a980103ff26d9141bc099e10 /templates | |
parent | 5f1e320a6ca7b781b8c4b4a0cfbc207d2719f38e (diff) | |
download | web-7da85c36293a0821cf009724aa135b8343c882e4.tar.gz web-7da85c36293a0821cf009724aa135b8343c882e4.tar.bz2 web-7da85c36293a0821cf009724aa135b8343c882e4.zip |
add possibility to disable accounts
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin_disable_account.html | 20 | ||||
-rw-r--r-- | templates/admin_index.html | 1 |
2 files changed, 21 insertions, 0 deletions
diff --git a/templates/admin_disable_account.html b/templates/admin_disable_account.html new file mode 100644 index 0000000..b6eccda --- /dev/null +++ b/templates/admin_disable_account.html @@ -0,0 +1,20 @@ +{%- extends 'base.html' %} +{%- from '_macros.html' import render_field, render_submit, render_csrf %} +{%- set title = 'Account deaktivieren' %} +{%- block content %} +<p> + Hier kannst du einen Account deaktivieren. Da es quasi unmöglich ist, + Accounts zu löschen, ohne dass es Konsistenzprobleme zwischen dem LDAP und + den Datenbanken der Anwendungen gibt, wird dazu einfach das Passwort auf was + zufälliges und die Mail auf was ungültiges gesetzt. +</p> +<p> + Der Benutzer wird davon nicht benachrichtigt, mach das also nur mit + Accounts, die sicher Spammer sind! +</p> +<form action="" method="post" class="form-horizontal"> + {{ render_field(form.username, autofocus="autofocus") }} + {{ render_submit(value='Account deaktivieren')}} + {{ render_csrf(form) }} +</form> +{%- endblock %} diff --git a/templates/admin_index.html b/templates/admin_index.html index 6275bcc..7267493 100644 --- a/templates/admin_index.html +++ b/templates/admin_index.html @@ -4,5 +4,6 @@ <ul> <li><a href="{{ url_for('admin_create_account') }}">Account erstellen</a></li> <li><a href="{{ url_for('admin_view_blacklist') }}">Blacklist anzeigen</a></li> + <li><a href="{{ url_for('admin_disable_account') }}">Account deaktivieren</a></li> </ul> {%- endblock %} |