0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

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.
This commit is contained in:
Paul Adam Davis 2014-07-30 14:13:48 +01:00
parent fe2e3f45c7
commit 21668cc65d

View file

@ -35,6 +35,10 @@
<form class="user-profile" novalidate="novalidate" autocomplete="off">
{{!-- Horrible hack to prevent Chrome from incorrectly auto-filling inputs --}}
<input style="display:none;" type="text" name="fakeusernameremembered"/>
<input style="display:none;" type="password" name="fakepasswordremembered"/>
<fieldset class="user-details-top">
<figure class="user-image">
@ -67,7 +71,7 @@
{{!-- The correct markup for select boxes. Needs changing to the correct data --}}
{{!-- <div class="form-group">
<label for="user-role">Role</label>
<span class="gh-select" {{bind-attr data-select-text=selectedTheme.label}}>
<span class="gh-select">
{{view Ember.Select
id="activeTheme"
name="general[activeTheme]"