* Fix that create new user with password check failed.

This commit is contained in:
dingguodong
2023-07-12 10:42:14 +08:00
parent 403c1d998b
commit 024f28bd24
2 changed files with 9 additions and 2 deletions
+1 -2
View File
@@ -82,8 +82,7 @@ function clickSubmit()
$("#passwordLength").val(password1.length);
}
if($("form input[name=passwordStrength]").length == 0) $('#submit').after("<input type='hidden' name='passwordStrength' value='0' />");
$("form input[name=passwordStrength]").val(passwordStrength);
$('#passwordLength').after("<input type='hidden' name='passwordStrength' value='" + passwordStrength + "' />");
const rand = $('input#verifyRand').val();
if(password1 && !password1Encrypted) $('#password1').val(md5(password1) + rand);
+8
View File
@@ -112,6 +112,7 @@ formPanel
(
set::width('1/2'),
set::label($lang->user->password),
set::required(true),
inputGroup
(
input
@@ -256,6 +257,13 @@ formPanel
set::class('hidden'),
set::name('verifyRand'),
set::value($rand)
),
input
(
set::class('hidden'),
set::id('passwordLength'),
set::name('passwordLength'),
set::value($rand)
)
);