From c8704e30f8821b6ad240ccd33f572f9c91bd52cd Mon Sep 17 00:00:00 2001 From: zhouxudong Date: Wed, 9 Mar 2022 11:29:09 +0800 Subject: [PATCH] * Finish task #50425. --- module/execution/css/kanban.css | 4 ++-- module/execution/view/importbug.html.php | 2 +- module/user/js/create.js | 23 +++++++++++++---------- 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/module/execution/css/kanban.css b/module/execution/css/kanban.css index a987329020..0463eec1ed 100644 --- a/module/execution/css/kanban.css +++ b/module/execution/css/kanban.css @@ -106,5 +106,5 @@ #mainMenu .divider {margin: 10px} -.kanbanRegion {margin: 5px} -.modal-header {padding: 15px 0;} +.kanbanRegion {margin: 5px} +.modal-header {padding: 15px 0;} diff --git a/module/execution/view/importbug.html.php b/module/execution/view/importbug.html.php index 2e6e2fbeff..0a1a030c45 100755 --- a/module/execution/view/importbug.html.php +++ b/module/execution/view/importbug.html.php @@ -75,7 +75,7 @@
- ' . $lang->goback, 'onclick="goback()"', 'btn');?> + ' . $lang->goback, 'onclick="goback()"', 'btn');?> diff --git a/module/user/js/create.js b/module/user/js/create.js index bf415c8610..11375a9b0a 100644 --- a/module/user/js/create.js +++ b/module/user/js/create.js @@ -68,17 +68,20 @@ $(function() $('#password2').change(function(){password2Encrypted = false}); $('#submit').click(function() { - var password1 = $('#password1').val(); - var password2 = $('#password2').val(); - var passwordStrength = computePasswordStrength(password1); + if(!password1Encrypted && !password2Encrypted) + { + var password1 = $('#password1').val(); + var password2 = $('#password2').val(); + var passwordStrength = computePasswordStrength(password1); - if($("form input[name=passwordStrength]").length == 0) $('#submit').after(""); - $("form input[name=passwordStrength]").val(passwordStrength); + if($("form input[name=passwordStrength]").length == 0) $('#submit').after(""); + $("form input[name=passwordStrength]").val(passwordStrength); - var rand = $('input#verifyRand').val(); - if(password1 && !password1Encrypted) $('#password1').val(md5(password1) + rand); - if(password2 && !password2Encrypted) $('#password2').val(md5(password2) + rand); - password1Encrypted = true; - password2Encrypted = true; + var rand = $('input#verifyRand').val(); + if(password1 && !password1Encrypted) $('#password1').val(md5(password1) + rand); + if(password2 && !password2Encrypted) $('#password2').val(md5(password2) + rand); + password1Encrypted = true; + password2Encrypted = true; + } }) });