diff options
| author | Olivier Dony <odo@openerp.com> | 2017-01-10 17:02:39 +0100 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2017-01-10 17:09:03 +0100 |
| commit | cd4ff9341e8a1bf9ca383b43facba573204f9fa1 (patch) | |
| tree | 4662798a1b5cb2954d0eeade4ac4cce7412feefa /addons/web_editor/static/src/js/summernote.js | |
| parent | fc813847d8cf3242a0202cff813c3466cd0a5e1f (diff) | |
[FIX] http: make error 400 slightly more user-friendly
Users who get an error 400 due to an invalid CSRF
token might be doing something legit. For example
they may have opened the page with the HTTP form
2 hours before posting it, and let the CSRF token
expire naturally (default lifetime is 1h).
In this situation the "invalid CSRF token" message
might be too cryptic for them to understand that
they need to refresh the form and try again.
Mentioning that their "Session expired" as well
should sound more familiar and lead to the right
reaction.
Diffstat (limited to 'addons/web_editor/static/src/js/summernote.js')
0 files changed, 0 insertions, 0 deletions
