add button to make password visible

This commit is contained in:
Uwe Steinmann 2025-12-02 13:52:45 +01:00
parent ac22269120
commit a4937e3502

View File

@ -100,14 +100,26 @@ $(document).ready( function() {
'id'=>'currentpwd',
'name'=>'currentpwd',
'autocomplete'=>'off',
'required'=>true
'required'=>true,
'addon'=>'<i class="fa fa-eye-slash"></i>'
)
);
if(!$disablechangepassword) {
$this->formField(
getMLText("new_password"),
'<input class="form-control pwd" type="password" rel="strengthbar" id="pwd" name="pwd" size="30">'
array(
'element'=>'input',
'type'=>'password',
'id'=>'pwd',
'name'=>'pwd',
'class'=>'pwd',
'autocomplete'=>'off',
'required'=>true,
'attributes'=>[['rel', 'strengthbar']],
'addon'=>'<i class="fa fa-eye-slash"></i>'
)
);
if($passwordstrength) {
$this->formField(
getMLText("password_strength"),
@ -122,6 +134,7 @@ $(document).ready( function() {
'id'=>'pwdconf',
'name'=>'pwdconf',
'autocomplete'=>'off',
'addon'=>'<i class="fa fa-eye-slash"></i>'
)
);
}