Skip to content

Commit 21668cc

Browse files
committed
Disable user settings autocomplete in Chrome
Closes #3271 - Adds 2 hidden inputs at the top start of the form that trick chrome into filling those, leaving out the rest.
1 parent fe2e3f4 commit 21668cc

File tree

1 file changed

+5
-1
lines changed
  • core/client/templates/settings/users

1 file changed

+5
-1
lines changed

core/client/templates/settings/users/user.hbs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535

3636
<form class="user-profile" novalidate="novalidate" autocomplete="off">
3737

38+
{{!-- Horrible hack to prevent Chrome from incorrectly auto-filling inputs --}}
39+
<input style="display:none;" type="text" name="fakeusernameremembered"/>
40+
<input style="display:none;" type="password" name="fakepasswordremembered"/>
41+
3842
<fieldset class="user-details-top">
3943

4044
<figure class="user-image">
@@ -67,7 +71,7 @@
6771
{{!-- The correct markup for select boxes. Needs changing to the correct data --}}
6872
{{!-- <div class="form-group">
6973
<label for="user-role">Role</label>
70-
<span class="gh-select" {{bind-attr data-select-text=selectedTheme.label}}>
74+
<span class="gh-select">
7175
{{view Ember.Select
7276
id="activeTheme"
7377
name="general[activeTheme]"

0 commit comments

Comments
 (0)