mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-03 13:25:05 +01:00
* Api: Fix auto-complete password field gets activated even though user hasn't selected it deliberately.
This commit is contained in:
parent
729ed7c63c
commit
1f190682d0
@ -119,7 +119,11 @@ var et2_textbox = (function(){ "use strict"; return et2_inputWidget.extend([et2_
|
||||
case "passwd":
|
||||
this.input.attr("type", "password");
|
||||
// Make autocomplete default value off for password field
|
||||
if (this.options.autocomplete === "") this.options.autocomplete = "off";
|
||||
// seems browsers not respecting 'off' anymore and started to
|
||||
// impelement a new key called "new-password" considered as switching
|
||||
// autocomplete off.
|
||||
// https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion
|
||||
if (this.options.autocomplete === "" || this.options.autocomplete == "off") this.options.autocomplete = "new-password";
|
||||
break;
|
||||
case "hidden":
|
||||
this.input.attr("type", "hidden");
|
||||
|
Loading…
Reference in New Issue
Block a user