Don't cache authenticity tokens
This commit is contained in:
parent
90f5192055
commit
d4cb5b8dad
1 changed files with 27 additions and 28 deletions
|
|
@ -20,35 +20,34 @@
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
- cache(:login_form) do
|
.container{:style => 'text-align:center;'}
|
||||||
.container{:style => 'text-align:center;'}
|
#login
|
||||||
#login
|
= image_tag('logo_caps.png', :id => 'logo', :width => 143, :height => 21)
|
||||||
= image_tag('logo_caps.png', :id => 'logo', :width => 143, :height => 21)
|
%br
|
||||||
%br
|
%br
|
||||||
%br
|
= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
|
||||||
= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
|
%p
|
||||||
%p
|
= f.label :username , t('username')
|
||||||
= f.label :username , t('username')
|
= f.text_field :username
|
||||||
= f.text_field :username
|
%span.pod_location
|
||||||
%span.pod_location
|
="@#{AppConfig[:pod_uri].host}"
|
||||||
="@#{AppConfig[:pod_uri].host}"
|
|
||||||
|
|
||||||
%p
|
%p
|
||||||
= f.label :password , t('password')
|
= f.label :password , t('password')
|
||||||
= f.password_field :password
|
= f.password_field :password
|
||||||
%span
|
%span
|
||||||
- if devise_mapping.recoverable? && controller_name != 'passwords'
|
- if devise_mapping.recoverable? && controller_name != 'passwords'
|
||||||
= link_to t('devise.shared.links.forgot_your_password'), new_password_path(resource_name)
|
= link_to t('devise.shared.links.forgot_your_password'), new_password_path(resource_name)
|
||||||
- else
|
- else
|
||||||
\.
|
\.
|
||||||
|
|
||||||
%p.submit
|
%p.submit
|
||||||
= f.submit t('.sign_in')
|
= f.submit t('.sign_in')
|
||||||
%span
|
%span
|
||||||
- if !AppConfig[:registrations_closed] && devise_mapping.registerable? && controller_name != 'registrations'
|
- if !AppConfig[:registrations_closed] && devise_mapping.registerable? && controller_name != 'registrations'
|
||||||
= link_to t('devise.shared.links.sign_up'), new_registration_path(resource_name)
|
= link_to t('devise.shared.links.sign_up'), new_registration_path(resource_name)
|
||||||
- else
|
- else
|
||||||
\.
|
\.
|
||||||
|
|
||||||
= image_tag 'ajax-loader.gif', :id => "spinner", :class => "hidden"
|
= image_tag 'ajax-loader.gif', :id => "spinner", :class => "hidden"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue