demarches-normaliennes/app
Pierre de La Morinerie e1909ed29f brouillon: redirect to sign-in when disconnected
There are two cases where the draft auto-save might fail because the
user is no longer authenticated:

- The user signed-out in another tab,
- The brower quit and re-opened, so the Session cookie expired.

In both cases, the auto-save will never succeed until the user
authenticates again, so displaying a "Retry" button is cruel.

Moreover, in plus of all auto-save requests failing with a small error,
the actual hard failure only occurs after filling all the form and
trying to submit it. Then the user is redirected to the sign-in page –
but all their changes are lost.

Instead, we now redirect to the sign-in page on the first 401 error
during the auto-save, let the user sign-in, and then redirect back to
the form.
2021-07-22 11:58:02 +02:00
..
assets Add a point on map from coordinates input 2021-07-07 13:33:28 +02:00
controllers i18n: localize dossiers edition 2021-07-20 14:18:20 +02:00
dashboards manager: localize dossier enums 2021-05-06 14:41:08 +02:00
fields manager: remove support for old pj 2019-07-30 16:11:17 +02:00
graphql [GraphQL] expose deleted dossiers 2021-06-24 11:51:37 +02:00
helpers i18n: localize dossiers edition 2021-07-20 14:18:20 +02:00
javascript brouillon: redirect to sign-in when disconnected 2021-07-22 11:58:02 +02:00
jobs Revert "Revert "Expose dossier PDF export as IO"" 2021-06-24 21:01:59 +02:00
lib Fix api education wrong data type 2021-06-08 12:25:24 +02:00
mailers Fix apostrophes ‘ -> ’ 2021-05-26 18:05:14 +02:00
models Fix false positive blank champ warnings 2021-07-22 10:45:25 +02:00
policies policies: clarify the role of ChampPolicy 2020-06-24 15:42:30 +02:00
schemas Add api address external data fetch 2021-02-17 19:10:16 +01:00
serializers modify experts avis controllers, concern and serializer 2021-03-18 11:38:52 +01:00
services Refactor clone_attachments 2021-07-01 16:21:46 +02:00
validators Add geo json validation 2021-03-11 15:51:09 +01:00
views instructeur: limit the maximum size of a filter value 2021-07-20 14:49:48 +02:00