* Fix that create new user with password check failed.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user