diff roundup/cgi/client.py @ 5847:26cd8e8bbed3

Change microcopy for missing csrf to follow mismatched csrf. Fix tests.
author John Rouillard <rouilj@ieee.org>
date Mon, 15 Jul 2019 20:59:12 -0400
parents fd015c4c6c23
children 1b57d8f3eb97
line wrap: on
line diff
--- a/roundup/cgi/client.py	Mon Jul 15 20:41:24 2019 -0400
+++ b/roundup/cgi/client.py	Mon Jul 15 20:59:12 2019 -0400
@@ -1252,7 +1252,7 @@
         if key is None: # we do not have an @csrf token
             if enforce == 'required':
                 logger.error(self._("Required csrf field missing for user%s"), current_user)
-                raise UsageError(self._("Csrf token is missing."))
+                raise UsageError(self._("We can't validate your session (csrf failure). Re-enter any unsaved data and try again."))
             elif enforce == 'logfailure':
                     # FIXME include url
                     logger.warning(self._("csrf field not supplied by user%s"), current_user)

Roundup Issue Tracker: http://roundup-tracker.org/