Sha256: a1c9c64c3fe6e52cb455e04695532b887749dde93a7de1ee7878160f5940dcb4
Contents?: true
Size: 1.24 KB
Versions: 2
Compression:
Stored size: 1.24 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.button 'Change Password', type: 'submit' %> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
authpwn_rails-0.16.1 | lib/authpwn_rails/generators/templates/session/password_change.html.erb |
authpwn_rails-0.16.0 | lib/authpwn_rails/generators/templates/session/password_change.html.erb |