lib/authpwn_rails/generators/templates/session/new.html.erb in authpwn_rails-0.5.6 vs lib/authpwn_rails/generators/templates/session/new.html.erb in authpwn_rails-0.6.0
- old
+ new
@@ -2,10 +2,17 @@
<% if flash[:notice] %>
<p class="notice"><%= flash[:notice] %></p>
<% end %>
+<% if @redirect_url %>
+<p>
+ We need you to log in before we can show you the page that you are trying to
+ view.
+</p>
+<% end %>
+
<%= form_for User.new, :url => session_path do |f| %>
<div class="field">
<%= f.label :email, 'Email Address' %><br />
<%= f.email_field :email %>
</div>
@@ -15,7 +22,11 @@
<%= f.password_field :password %>
</div>
<div class="actions">
<%= f.submit 'Log in' %>
+
+ <% if @redirect_url %>
+ <%= hidden_field_tag :redirect_url, @redirect_url %>
+ <% end %>
</div>
<% end %>