From d4cb5b8dad688f5b1e0f53d3fb5e7675f7a8ed3d Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Sat, 22 Jan 2011 15:56:31 -0800 Subject: [PATCH] Don't cache authenticity tokens --- app/views/devise/sessions/new.haml | 55 +++++++++++++++--------------- 1 file changed, 27 insertions(+), 28 deletions(-) diff --git a/app/views/devise/sessions/new.haml b/app/views/devise/sessions/new.haml index 9a6f2740f..7a6b1bda7 100644 --- a/app/views/devise/sessions/new.haml +++ b/app/views/devise/sessions/new.haml @@ -20,35 +20,34 @@ }); }); -- cache(:login_form) do - .container{:style => 'text-align:center;'} - #login - = image_tag('logo_caps.png', :id => 'logo', :width => 143, :height => 21) - %br - %br - = form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| - %p - = f.label :username , t('username') - = f.text_field :username - %span.pod_location - ="@#{AppConfig[:pod_uri].host}" +.container{:style => 'text-align:center;'} + #login + = image_tag('logo_caps.png', :id => 'logo', :width => 143, :height => 21) + %br + %br + = form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| + %p + = f.label :username , t('username') + = f.text_field :username + %span.pod_location + ="@#{AppConfig[:pod_uri].host}" - %p - = f.label :password , t('password') - = f.password_field :password - %span - - if devise_mapping.recoverable? && controller_name != 'passwords' - = link_to t('devise.shared.links.forgot_your_password'), new_password_path(resource_name) - - else - \. + %p + = f.label :password , t('password') + = f.password_field :password + %span + - if devise_mapping.recoverable? && controller_name != 'passwords' + = link_to t('devise.shared.links.forgot_your_password'), new_password_path(resource_name) + - else + \. - %p.submit - = f.submit t('.sign_in') - %span - - if !AppConfig[:registrations_closed] && devise_mapping.registerable? && controller_name != 'registrations' - = link_to t('devise.shared.links.sign_up'), new_registration_path(resource_name) - - else - \. + %p.submit + = f.submit t('.sign_in') + %span + - if !AppConfig[:registrations_closed] && devise_mapping.registerable? && controller_name != 'registrations' + = link_to t('devise.shared.links.sign_up'), new_registration_path(resource_name) + - else + \. - = image_tag 'ajax-loader.gif', :id => "spinner", :class => "hidden" + = image_tag 'ajax-loader.gif', :id => "spinner", :class => "hidden"