Sha256: f853b521e98379d86f4b6205e8a0f694b185167ee3eeded35f03fdd095266d5b

Contents?: true

Size: 1.19 KB

Versions: 8

Compression:

Stored size: 1.19 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 :password_challenge, style: "display: block" %>
    <%%= form.password_field :password_challenge, 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

8 entries across 8 versions & 1 rubygems

Version Path
authentication-zero-4.0.3 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-4.0.2 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-4.0.1 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-4.0.0 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-3.0.2 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-3.0.1 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-3.0.0 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt
authentication-zero-3.0.0.alpha1 lib/generators/authentication/templates/erb/passwords/edit.html.erb.tt