Skip to content

Commit 2d5f535

Browse files
author
Pascal Dreissen
committed
Prevent password managers autofill password for mailuser interface
1 parent 229a3f0 commit 2d5f535

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

interface/web/mailuser/lib/lang/en_mail_user_password.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ $wb['generate_password_txt'] = 'Generate Password';
77
$wb['repeat_password_txt'] = 'Repeat Password';
88
$wb['password_mismatch_txt'] = 'The passwords do not match.';
99
$wb['password_match_txt'] = 'The passwords do match.';
10+
$wb['password_click_to_set_txt'] = 'Click to set';
1011
?>

interface/web/mailuser/lib/lang/nl_mail_user_password.lng

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ $wb['generate_password_txt'] = 'Generate Password';
77
$wb['repeat_password_txt'] = 'Repeat Password';
88
$wb['password_mismatch_txt'] = 'The passwords do not match.';
99
$wb['password_match_txt'] = 'The passwords do match.';
10+
$wb['password_click_to_set_txt'] = 'Klik om in te stellen';
1011
?>

interface/web/mailuser/templates/mail_user_password_edit.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h1><tmpl_var name="list_head_txt"></h1>
1515
<label for="password" class="col-sm-3 control-label">{tmpl_var name='password_txt'}</label>
1616
<div class="col-sm-9">
1717
<div class="input-group">
18-
<input type="password" name="password" id="password" value="{tmpl_var name='password'}" class="form-control" autocomplete="off" onkeyup="pass_check(this.value);checkPassMatch('password','repeat_password');" />
18+
<input type="password" name="password" id="password" value="{tmpl_var name='password'}" data-toggle="tooltip" data-placement="left" title="{tmpl_var name='password_click_to_set_txt'}" readonly onfocus="this.removeAttribute('readonly');" class="form-control" autocomplete="off" onkeyup="pass_check(this.value);checkPassMatch('password','repeat_password');" />
1919
<span class="input-group-btn">
2020
<button class="btn btn-default" type="button" onclick="generatePassword('password','repeat_password');">{tmpl_var name='generate_password_txt'}</button>
2121
</span>
@@ -31,7 +31,7 @@ <h1><tmpl_var name="list_head_txt"></h1>
3131
</div>
3232
<div class="form-group">
3333
<label for="repeat_password" class="col-sm-3 control-label">{tmpl_var name='repeat_password_txt'}</label>
34-
<div class="col-sm-9"><input type="password" name="repeat_password" id="repeat_password" value="" class="form-control" autocomplete="off" onkeyup="checkPassMatch('password','repeat_password');" /></div></div>
34+
<div class="col-sm-9"><input type="password" name="repeat_password" id="repeat_password" value="" data-toggle="tooltip" data-placement="left" title="{tmpl_var name='password_click_to_set_txt'}" readonly onfocus="this.removeAttribute('readonly');" class="form-control" autocomplete="off" onkeyup="checkPassMatch('password','repeat_password');" /></div></div>
3535
<div class="form-group">
3636
<div class="col-sm-offset-3 col-sm-9">
3737
<div id="confirmpasswordError" style="display:none;" class="confirmpassworderror">{tmpl_var name='password_mismatch_txt'}</div>

0 commit comments

Comments
 (0)