This commit is contained in:
liumengyi
2022-07-12 17:10:11 +08:00
parent b4b41b05cb
commit f711e0984e
3 changed files with 16 additions and 1 deletions
+2
View File
@@ -9,3 +9,5 @@ body {background: #1183fb linear-gradient(-90deg, #0a48d1 0%, #1183fb 100%); bac
#resetForm .form-control:focus {border-color: #2272eb; background: #fff;} #resetForm .form-control:focus {border-color: #2272eb; background: #fff;}
#resetForm .form-actions {padding-bottom: 20px;} #resetForm .form-actions {padding-bottom: 20px;}
.required:after {top: 32px; right: -15px;} .required:after {top: 32px; right: -15px;}
#resetPanel .form-group .input-group {width: 100%}
#resetPanel .form-group .input-group.required:after {top: 6px;}
+8
View File
@@ -11,4 +11,12 @@ $(function()
} }
$('#password1').attr('id', 'password'); $('#password1').attr('id', 'password');
$('#submit').click(function()
{
var password1 = $('#password').val();
var passwordStrength = computePasswordStrength(password1);
$("form input[id=passwordStrength]").val(passwordStrength);
})
}) })
+6 -1
View File
@@ -27,7 +27,10 @@ include '../../common/view/header.lite.html.php';
<tbody> <tbody>
<div class='form-group'> <div class='form-group'>
<label for='password1'><?php echo $lang->user->password;?></label> <label for='password1'><?php echo $lang->user->password;?></label>
<?php echo html::password('password1', '', "class='form-control' required placeholder='{$lang->user->placeholder->loginPassword}'");?> <span class='input-group'>
<?php echo html::password('password1', '', "class='form-control' required placeholder='{$lang->user->placeholder->loginPassword}' onmouseup='checkPassword(this.value)' onkeyup='checkPassword(this.value)'");?>
<span class='input-group-addon' id='passwordStrength'></span>
</span>
</div> </div>
<div class='form-group'> <div class='form-group'>
<label for='password2'><?php echo $lang->user->password2AB;?></label> <label for='password2'><?php echo $lang->user->password2AB;?></label>
@@ -37,6 +40,7 @@ include '../../common/view/header.lite.html.php';
<td colspan='2' class="form-actions text-center"> <td colspan='2' class="form-actions text-center">
<?php <?php
echo html::hidden('account', $user->account); echo html::hidden('account', $user->account);
echo html::hidden('passwordStrength', '');
echo html::submitButton($lang->user->submit); echo html::submitButton($lang->user->submit);
echo html::a(inlink('login'), $lang->goback, '', 'class="btn btn-wide"'); echo html::a(inlink('login'), $lang->goback, '', 'class="btn btn-wide"');
?> ?>
@@ -50,4 +54,5 @@ include '../../common/view/header.lite.html.php';
</div> </div>
</div> </div>
<?php endif;?> <?php endif;?>
<?php js::set('passwordStrengthList', $lang->user->passwordStrengthList)?>
<?php include '../../common/view/footer.lite.html.php';?> <?php include '../../common/view/footer.lite.html.php';?>