Sha256: 1a1ebaf808a2d081cdcd6fd72219ef5e585685f9517cec8ae474107e2d39414a

Contents?: true

Size: 1.23 KB

Versions: 28

Compression:

Stored size: 1.23 KB

Contents

<h1>Password Change</h1>

<% if flash[:notice] %>
<p class="notice"><%= flash[:notice] %></p>
<% end %>
<% if flash[:alert] %>
<p class="alert"><%= flash[:alert] %></p>
<% end %>

<% if @credential.updated_at %>
<p class="password_age_notice">
  Your have been using the same password for
  <span class="password_age">
    <%= time_ago_in_words @credential.updated_at, include_seconds: true %>.
  </span>
</p>
<% end %>

<%= form_for @credential, url: change_password_session_path,
                          as: :credential, method: :post do |f| %>
  <section class="fields">
  <% unless @credential.new_record? %>
  <div class="field">
    <%= f.label :old_password, 'Current Password' %><br />
    <span class="value">
      <%= f.password_field :old_password %>
    </span>
  </div>
  <% end %>

  <div class="field">
    <%= f.label :password, 'New Password' %><br />
    <span class="value">
      <%= f.password_field :password %>
    </span>
  </div>

  <div class="field">
    <%= f.label :password_confirmation, 'Re-enter New Password' %><br />
    <span class="value">
      <%= f.password_field :password_confirmation %>
    </span>
  </div>
  </section>

  <div class="actions">
    <%= f.button 'Change Password', type: 'submit' %>
  </div>
<% end %>

Version data entries

28 entries across 14 versions & 1 rubygems

Version Path
authpwn_rails-0.17.2 test/fixtures/bare_session/password_change.html.erb
authpwn_rails-0.17.2 lib/authpwn_rails/generators/templates/session/password_change.html.erb
authpwn_rails-0.17.1 test/fixtures/bare_session/password_change.html.erb
authpwn_rails-0.17.1 lib/authpwn_rails/generators/templates/session/password_change.html.erb
authpwn_rails-0.17.0 test/fixtures/bare_session/password_change.html.erb
authpwn_rails-0.17.0 lib/authpwn_rails/generators/templates/session/password_change.html.erb
authpwn_rails-0.16.2 test/fixtures/bare_session/password_change.html.erb
authpwn_rails-0.16.2 lib/authpwn_rails/generators/templates/session/password_change.html.erb