diff --git a/app/views/account/login.html.erb b/app/views/account/login.html.erb index 27878bc7e..fb8085d71 100644 --- a/app/views/account/login.html.erb +++ b/app/views/account/login.html.erb @@ -5,13 +5,13 @@ <%= back_url_hidden_field_tag %> - <%= text_field_tag 'username', params[:username], :tabindex => '1', :autofocus => params[:username].blank? %> + <%= text_field_tag 'username', params[:username], :tabindex => '1', :autocomplete => 'username', :autofocus => params[:username].blank? %> - <%= password_field_tag 'password', nil, :tabindex => '2', :autofocus => params[:username].present? %> + <%= password_field_tag 'password', nil, :tabindex => '2', :autocomplete => 'current-password', :autofocus => params[:username].present? %> <% if Setting.autologin? %> diff --git a/app/views/account/password_recovery.html.erb b/app/views/account/password_recovery.html.erb index 0c275b476..a3556ce75 100644 --- a/app/views/account/password_recovery.html.erb +++ b/app/views/account/password_recovery.html.erb @@ -7,7 +7,7 @@
- <%= password_field_tag 'new_password', nil, :size => 25 %> + <%= password_field_tag 'new_password', nil, :size => 25, :autocomplete => 'new-password' %> <%= l(:text_caracters_minimum, :count => Setting.password_min_length) %> <% if Setting.password_required_char_classes.any? %> <%= l(:text_characters_must_contain, :character_classes => Setting.password_required_char_classes.collect{|c| l("label_password_char_class_#{c}")}.join(", ")) %> @@ -16,7 +16,7 @@
- <%= password_field_tag 'new_password_confirmation', nil, :size => 25 %> + <%= password_field_tag 'new_password_confirmation', nil, :size => 25, :autocomplete => 'new-password' %>
<%= submit_tag l(:button_save) %>
diff --git a/app/views/my/password.html.erb b/app/views/my/password.html.erb index 91f66ccd7..ad17de4c6 100644 --- a/app/views/my/password.html.erb +++ b/app/views/my/password.html.erb @@ -5,10 +5,10 @@ <%= form_tag({}, :class => "tabular") do %>-<%= password_field_tag 'password', nil, :size => 25 %>
+<%= password_field_tag 'password', nil, :size => 25, :autocomplete => 'current-password' %>-<%= password_field_tag 'new_password', nil, :size => 25 %> +<%= password_field_tag 'new_password', nil, :size => 25, :autocomplete => 'new-password' %> <%= l(:text_caracters_minimum, :count => Setting.password_min_length) %> <% if Setting.password_required_char_classes.any? %> <%= l(:text_characters_must_contain, :character_classes => Setting.password_required_char_classes.collect{|c| l("label_password_char_class_#{c}")}.join(", ")) %> @@ -16,7 +16,7 @@
-<%= password_field_tag 'new_password_confirmation', nil, :size => 25 %>
+<%= password_field_tag 'new_password_confirmation', nil, :size => 25, :autocomplete => 'new-password' %>
- <%= password_field_tag :sudo_password, nil, size: 25 %>
+ <%= password_field_tag :sudo_password, nil, size: 25, :autocomplete => 'current-password' %>
<%= link_to l(:label_password_lost), lost_password_path, :class => "lost_password" if Setting.lost_password? %>
- <%= password_field_tag :sudo_password, nil, size: 25, autofocus: true %> + <%= password_field_tag :sudo_password, nil, size: 25, :autocomplete => 'current-password', autofocus: true %> <%= link_to l(:label_password_lost), lost_password_path, :class => "lost_password" if Setting.lost_password? %>