Sha256: e0566161c4f4ee7b7da21a74b5142096fca6b669f55836e95f644f6d0d42543f

Contents?: true

Size: 1.04 KB

Versions: 13

Compression:

Stored size: 1.04 KB

Contents

<h1>Reset your password</h1>

<%%= form_with(model: @<%= model_resource_name %>, url: password_reset_path) do |form| %>
  <%% if @<%= singular_table_name %>.errors.any? %>
    <div style="color: red">
      <h2><%%= pluralize(@<%= singular_table_name %>.errors.count, "error") %> prohibited this <%= singular_table_name %> from being saved:</h2>

      <ul>
        <%% @<%= singular_table_name %>.errors.each do |error| %>
          <li><%%= error.full_message %></li>
        <%% end %>
      </ul>
    </div>
  <%% end %>

  <%%= hidden_field_tag :token, params[:token] %>

  <div>
    <%%= form.label :password, "New password", style: "display: block" %>
    <%%= form.password_field :password, autofocus: true, autocomplete: "new-password" %>
    <div>12 characters minimum.</div>
  </div>

  <div>
    <%%= form.label :password_confirmation, "Confirm new password", style: "display: block" %>
    <%%= form.password_field :password_confirmation, autocomplete: "new-password" %>
  </div>

  <div>
    <%%= form.submit "Save changes" %>
  </div>
<%% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
authentication-zero-2.7.0 lib/generators/authentication/templates/erb/password_resets/edit.html.erb.tt
authentication-zero-2.6.0 lib/generators/authentication/templates/erb/password_resets/edit.html.erb.tt
authentication-zero-2.5.1 lib/generators/authentication/templates/erb/password_resets/edit.html.erb.tt
authentication-zero-2.5.0 lib/generators/authentication/templates/erb/password_resets/edit.html.erb.tt
authentication-zero-2.4.0 lib/generators/authentication/templates/erb/password_resets/edit.html.erb.tt
authentication-zero-2.3.6 lib/generators/authentication/templates/erb/password_resets/edit.html.erb.tt
authentication-zero-2.3.5 lib/generators/authentication/templates/erb/password_resets/edit.html.erb.tt
authentication-zero-2.3.4 lib/generators/authentication/templates/erb/password_resets/edit.html.erb.tt
authentication-zero-2.3.3 lib/generators/authentication/templates/erb/password_resets/edit.html.erb.tt
authentication-zero-2.3.2 lib/generators/authentication/templates/erb/password_resets/edit.html.erb.tt
authentication-zero-2.3.1 lib/generators/authentication/templates/erb/password_resets/edit.html.erb.tt
authentication-zero-2.3.0 lib/generators/authentication/templates/erb/password_resets/edit.html.erb.tt
authentication-zero-2.2.10 lib/generators/authentication/templates/erb/password_resets/edit.html.erb.tt