Don't cache authenticity tokens

This commit is contained in:
Sarah Mei 2011-01-22 15:56:31 -08:00
parent 90f5192055
commit d4cb5b8dad

View file

@ -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"