diff --git a/app/views/devise/confirmations/new.html.erb b/app/views/devise/confirmations/new.html.erb index b12dd0cbeb..3c21122e10 100644 --- a/app/views/devise/confirmations/new.html.erb +++ b/app/views/devise/confirmations/new.html.erb @@ -4,8 +4,8 @@ <%= render "devise/shared/error_messages", resource: resource %>
<%= f.label :email %>
+<%= f.email_field :email, autofocus: true, autocomplete: "email", value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %>
<%= f.label :password, "New password" %>
<% if @minimum_password_length %> - (<%= @minimum_password_length %> characters minimum)(<%= @minimum_password_length %> characters minimum)
<% end %> - <%= f.password_field :password, autofocus: true, autocomplete: "new-password" %> +<%= f.password_field :password, autofocus: true, autocomplete: "new-password" %>
<%= f.label :password_confirmation, "Confirm new password" %>
+<%= f.password_field :password_confirmation, autocomplete: "new-password" %>
<%= f.label :email %>
+<%= f.email_field :email, autofocus: true, autocomplete: "email" %>
<%= f.label :email %>
+<%= f.email_field :email, autofocus: true, autocomplete: "email" %>
<%= f.label :password %> (leave blank if you don't want to change it)
+<%= f.password_field :password, autocomplete: "new-password" %>
<% if @minimum_password_length %> -<%= @minimum_password_length %> characters minimum
<% end %><%= f.label :password_confirmation %>
+<%= f.password_field :password_confirmation, autocomplete: "new-password" %>
<%= f.label :current_password %> (we need your current password to confirm your changes)
+<%= f.password_field :current_password, autocomplete: "current-password" %>
<%= f.label :email %>
+<%= f.email_field :email, autofocus: true, autocomplete: "email" %>
<%= f.label :password %>
<% if @minimum_password_length %> - (<%= @minimum_password_length %> characters minimum) - <% end %>(<%= @minimum_password_length %> characters minimum)
+ <% end %> +<%= f.password_field :password, autocomplete: "new-password" %>
<%= f.label :password_confirmation %>
+<%= f.password_field :password_confirmation, autocomplete: "new-password" %>
<%= f.label :email %>
+<%= f.email_field :email, autofocus: true, autocomplete: "email" %>
<%= f.label :password %>
+<%= f.password_field :password, autocomplete: "current-password" %>
<%= f.check_box :remember_me %>
+<%= f.label :remember_me %>
<%= link_to "Log in", new_session_path(resource_name) %>
<% end %> <%- if devise_mapping.registerable? && controller_name != 'registrations' %> - <%= link_to "Sign up", new_registration_path(resource_name) %><%= link_to "Sign up", new_registration_path(resource_name) %>
<% end %> <%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %> - <%= link_to "Forgot your password?", new_password_path(resource_name) %><%= link_to "Forgot your password?", new_password_path(resource_name) %>
<% end %> <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %> - <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %><%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %>
<% end %> <%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %> - <%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %><%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %>
<% end %> <%- if devise_mapping.omniauthable? %> <%- resource_class.omniauth_providers.each do |provider| %> - <%= button_to "Sign in with #{OmniAuth::Utils.camelize(provider)}", omniauth_authorize_path(resource_name, provider), data: { turbo: false } %><%= button_to "Sign in with #{OmniAuth::Utils.camelize(provider)}", omniauth_authorize_path(resource_name, provider), data: { turbo: false } %>
<% end %> <% end %> diff --git a/app/views/devise/unlocks/new.html.erb b/app/views/devise/unlocks/new.html.erb index ffc34de8d1..6b68d724cb 100644 --- a/app/views/devise/unlocks/new.html.erb +++ b/app/views/devise/unlocks/new.html.erb @@ -4,8 +4,8 @@ <%= render "devise/shared/error_messages", resource: resource %><%= f.label :email %>
+<%= f.email_field :email, autofocus: true, autocomplete: "email" %>