mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-13 10:54:23 +01:00
hopefully fix #1109 where I think the csrf change in rails 2.3.11 messes up our expiry checking
This commit is contained in:
parent
da93b82b2b
commit
4cca813bc7
2 changed files with 14 additions and 6 deletions
|
|
@ -6,6 +6,9 @@ class LoginController < ApplicationController
|
|||
skip_before_filter :login_required
|
||||
before_filter :login_optional
|
||||
before_filter :get_current_user
|
||||
|
||||
protect_from_forgery :except => :check_expiry
|
||||
|
||||
if ( SITE_CONFIG['authentication_schemes'].include? 'cas')
|
||||
# This will allow the user to view the index page without authentication
|
||||
# but will process CAS authentication data if the user already
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue