lib/authpwn_rails/generators/templates/session/new.html.erb in authpwn_rails-0.10.5 vs lib/authpwn_rails/generators/templates/session/new.html.erb in authpwn_rails-0.10.6
- old
+ new
@@ -1,7 +1,5 @@
-<p>This is a sample login form. You should customize it for your users.</p>
-
<% if flash[:notice] %>
<p class="notice"><%= flash[:notice] %></p>
<% end %>
<% if @redirect_url %>
@@ -12,19 +10,26 @@
<% end %>
<%= form_tag session_path do %>
<div class="field">
<%= label_tag :email, 'Email Address' %><br />
- <%= email_field_tag :email, @email %>
+ <span class="value">
+ <%= email_field_tag :email, @email, :autofocus => true, :required => true,
+ :placeholder => 'your@email.com' %>
+ </span>
</div>
<div class="field">
<%= label_tag :password %><br />
- <%= password_field_tag :password %>
+ <span class="value">
+ <%= password_field_tag :password %>
+ </span>
</div>
<div class="actions">
- <%= submit_tag 'Log in' %>
+ <%= button_tag 'Log in', :name => 'login', :value => 'requested' %>
+ <%= button_tag 'Reset Password', :name => 'reset_password',
+ :value => 'requested', :formaction => reset_password_session_path %>
<% if @redirect_url %>
<%= hidden_field_tag :redirect_url, @redirect_url %>
<% end %>
</div>