Sha256: f605d15d7ec0181684722f1e0e741f921fbdf6b58de6d75e71dcd0f367bdcb08

Contents?: true

Size: 1.23 KB

Versions: 1

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">
    <%= label_tag :old_password, 'Current Password' %><br />
    <span class="value">
      <%= password_field_tag :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.submit 'Change Password' %>
  </div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
authpwn_rails-0.14.0 lib/authpwn_rails/generators/templates/session/password_change.html.erb