diff --git a/app/page/auth.html b/app/page/auth.html index d9d1165cc60..abe895db89e 100644 --- a/app/page/auth.html +++ b/app/page/auth.html @@ -133,17 +133,17 @@
-
-
-
@@ -180,12 +180,12 @@
-
-
@@ -262,7 +262,7 @@
-
diff --git a/app/script/view_model/AuthViewModel.coffee b/app/script/view_model/AuthViewModel.coffee index 74dea55fdff..21d3ab57b88 100644 --- a/app/script/view_model/AuthViewModel.coffee +++ b/app/script/view_model/AuthViewModel.coffee @@ -220,8 +220,6 @@ class z.ViewModel.AuthViewModel .on 'hashchange', @_on_hash_change .on 'keydown', @keydown_auth - $("[id^='wire-login'], [id^='wire-register'], [id^='wire-verify']").prevent_prefill() - # Select country based on location of user IP @country_code (z.util.CountryCodes.get_country_code($('[name=geoip]').attr 'country') or 1).toString() @changed_country_code() @@ -1342,12 +1340,3 @@ $.fn.extend window.setTimeout => $(@).focus() , 0 - - # FIX to prevent unwanted auto form fill on Chrome - prevent_prefill: -> - if z.util.Environment.browser.chrome or z.util.Environment.browser.opera - @each -> - $(@) - .attr 'readonly', true - .on 'focus', -> - $(@).removeAttr 'readonly' diff --git a/app/style/auth/account.less b/app/style/auth/account.less index 174789d964f..3d57253a02a 100644 --- a/app/style/auth/account.less +++ b/app/style/auth/account.less @@ -131,4 +131,15 @@ } } } + + input { + &:-webkit-autofill, + &:-webkit-autofill:hover, + &:-webkit-autofill:focus { + -webkit-box-shadow: 0 0 0 1000px none inset; + -webkit-text-fill-color: #fff; + border: none; + transition: background-color 5000s ease-in-out 0s; + } + } }