mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
fix #1125 where rest/xml request were being rejected by the new csrf code of rails
This commit is contained in:
parent
fed7483063
commit
898dbe01c6
1 changed files with 7 additions and 1 deletions
|
|
@ -184,7 +184,13 @@ class ApplicationController < ActionController::Base
|
||||||
|
|
||||||
return saved ? todo : nil
|
return saved ? todo : nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def handle_unverified_request
|
||||||
|
unless request.format=="application/xml"
|
||||||
|
super # handle xml http auth via our own login code
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def admin_login_required
|
def admin_login_required
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue