changeset 79:aea1779e6f18 live

Bug #34: Add a bit more description to the "Invalid form authenticity token" error. Not exactly a fix, but it'll have to do for now.
author Chris Cannam
date Wed, 15 Dec 2010 10:35:51 +0000
parents 87f9c79026e5
children 22c68d60853d 98b2834d136b
files app/controllers/application_controller.rb
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/controllers/application_controller.rb	Wed Dec 08 18:17:38 2010 +0000
+++ b/app/controllers/application_controller.rb	Wed Dec 15 10:35:51 2010 +0000
@@ -314,7 +314,7 @@
     if api_request?
       logger.error "Form authenticity token is missing or is invalid. API calls must include a proper Content-type header (text/xml or text/json)."
     end
-    render_error "Invalid form authenticity token."
+    render_error "Invalid form authenticity token.  Perhaps your session has timed out; try reloading the form and entering your details again."
   end
   
   def render_feed(items, options={})