Skip to content
Browse files

Remove caching from login form

  • Loading branch information...
1 parent d2bd64e commit 7da73a2a3a62ff8503e082cafc78cd479dc38bea Arthur Holstvoogd committed
Showing with 15 additions and 16 deletions.
  1. +15 −16 defaults/app/layouts/default/views/layouts/partials/_header.html.haml
View
31 defaults/app/layouts/default/views/layouts/partials/_header.html.haml
@@ -7,22 +7,21 @@
= link_to image_tag('icons/feed_icon.png', :alt => I18n.t('layouts.rss_alt'), :title => I18n.t('layouts.rss_title')), @rss_feed_url, :id => 'rss'
- unless logged_in?
- - cache(:controller => '/nodes', :action => :login, :layout => :default) do
- #login
- - form_tag secure_url(:session_url), :method => :post do
- .login_username_container.clearfix
- .field_wrapper
- = text_field_tag :login, (params[:login] or I18n.t('layouts.username')), :id => 'login_username'
- %label{ :for => 'login_username' }= I18n.t('layouts.username')
- .login_password_container.clearfix
- .field_wrapper
- = password_field_tag :password, nil, :id => 'login_password'
- %label{ :for => 'login_password' }= I18n.t('layouts.password')
- .links
- = link_to I18n.t('layouts.registration_link'), signup_path, :class => 'signup_link'
- = link_to I18n.t('layouts.forgot_password'), request_password_users_path, :class => 'request_password_link'
- %div
- = submit_tag I18n.t('layouts.login'), :class => 'submit'
+ #login
+ - form_tag secure_url(:session_url), :method => :post do
+ .login_username_container.clearfix
+ .field_wrapper
+ = text_field_tag :login, (params[:login] or I18n.t('layouts.username')), :id => 'login_username'
+ %label{ :for => 'login_username' }= I18n.t('layouts.username')
+ .login_password_container.clearfix
+ .field_wrapper
+ = password_field_tag :password, nil, :id => 'login_password'
+ %label{ :for => 'login_password' }= I18n.t('layouts.password')
+ .links
+ = link_to I18n.t('layouts.registration_link'), signup_path, :class => 'signup_link'
+ = link_to I18n.t('layouts.forgot_password'), request_password_users_path, :class => 'request_password_link'
+ %div
+ = submit_tag I18n.t('layouts.login'), :class => 'submit'
#header.clearfix
/ Meta links

0 comments on commit 7da73a2

Please sign in to comment.
Something went wrong with that request. Please try again.