Commit 875d8afc82579ee6823851d18be8e0f80b732a03
1 parent
9ff5859c
Exists in
master
and in
19 other branches
Fix HTTP caching and logins with rails 4
Since all cookies should be dropped for unauthenticated users, you cannot expect the XSRF cookie to be present to allow users to login!
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
app/controllers/public/account_controller.rb
... | ... | @@ -6,6 +6,8 @@ class AccountController < ApplicationController |
6 | 6 | before_filter :redirect_if_logged_in, :only => [:login, :signup] |
7 | 7 | before_filter :protect_from_bots, :only => :signup |
8 | 8 | |
9 | + protect_from_forgery except: [:login] | |
10 | + | |
9 | 11 | helper CustomFieldsHelper |
10 | 12 | # say something nice, you goof! something sweet. |
11 | 13 | def index | ... | ... |
vendor/plugins/noosfero_caching/init.rb