Sha256: 14b0e77f115936496231e2a2f6ed7f8a6a641a849dcae4c7b4c21130d752d53b

Contents?: true

Size: 1.18 KB

Versions: 56

Compression:

Stored size: 1.18 KB

Contents

<p style="color: red"><%%= alert %></p>

<h1>Change your password</h1>

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

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

  <div>
    <%%= form.label :current_password, style: "display: block" %>
    <%%= form.password_field :current_password, required: true, autofocus: true, autocomplete: "current-password" %>
  </div>

  <div>
    <%%= form.label :password, "New password", style: "display: block" %>
    <%%= form.password_field :password, required: 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, required: true, autocomplete: "new-password" %>
  </div>

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

<br>

<div>
  <%%= link_to "Back", root_path %>
</div>

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
authentication-zero-2.16.36 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-2.16.35 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-2.16.34 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-2.16.33 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-2.16.32 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-2.16.31 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-2.16.30 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-2.16.29 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-2.16.28 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-2.16.27 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-2.16.26 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-2.16.25 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-2.16.24 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-2.16.23 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-2.16.22 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-2.16.21 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-2.16.20 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-2.16.19 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-2.16.18 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-2.16.17 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt