mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-01-13 12:57:59 +00:00
add button to make password visible
This commit is contained in:
parent
ac22269120
commit
a4937e3502
|
|
@ -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>'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user