From cac7a50901f39f67d279a6c375cc7347bc19d314 Mon Sep 17 00:00:00 2001 From: Peidong Liu Date: Sun, 4 Sep 2016 14:48:46 +0800 Subject: [PATCH 01/15] Now admin need to type password twice to change a user's password --- web/templates/user_list.html | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/web/templates/user_list.html b/web/templates/user_list.html index 21f464d..7c5f5b4 100644 --- a/web/templates/user_list.html +++ b/web/templates/user_list.html @@ -190,6 +190,11 @@ +
+ + +
+

- +

@@ -245,7 +246,7 @@ {{ application.number }} beans {{ application.time }} {{ application.reason }} - Agree     + Agree     Reject {% endfor %} @@ -279,10 +280,6 @@ { str=str + '' + 'Activate' + ''; } - else - { - str=str + '' + 'Chpassword' + ''; - } return str; }, "targets": 9 @@ -346,6 +343,7 @@ $("#mUserGroup").val(result.group); $("#mAuthMethod").val(result.auth_method); $("#mDescription").val(result.description); + $("#ChpasswordButton").attr("onClick", "javascript:setFormChpassword(\"" + result.username + "\");"); }); } function setFormChpassword(arg){