mirror of
https://github.com/nextcloud/server.git
synced 2026-03-25 20:03:23 -04:00
[IE9] Prevent LDAP password field to become plain text
The placeholders library converts the password field to a text field to achieve placeholders functionality. However this is buggy and doesn't properly mask the password when it was set through $el.val(). This workaround sets the type back to password directly after setting a value.
This commit is contained in:
parent
7224e99ccd
commit
c406efe74f
1 changed files with 4 additions and 0 deletions
|
|
@ -137,6 +137,10 @@ OCA = OCA || {};
|
|||
this.setElementValue(
|
||||
this.managedItems.ldap_agent_password.$element, agentPwd
|
||||
);
|
||||
if (agentPwd && $('html').hasClass('lte9')) {
|
||||
// make it a password field again (IE fix, placeholders bug)
|
||||
this.managedItems.ldap_agent_password.$element.attr('type', 'password');
|
||||
}
|
||||
},
|
||||
/**
|
||||
* updates the base DN text area
|
||||
|
|
|
|||
Loading…
Reference in a new issue