-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ATO-925: Adds session.save() to showGetEmailForm
The next controller in the user flow, showCheckEmailForm relies on the session containing the email address. However we redirect when submitting the email address, which may happen faster than our session updating, leading to the user being redirected back to the enter-email page. The docs for express-session say "There are some cases where it is useful to call this method (`session.save()`), for example, redirects..."[1] so adding this session.save call in to ensure the session is updated before the redirect occurs. [deploy] [1]- https://expressjs.com/en/resources/middleware/session.html
- Loading branch information
1 parent
853b0be
commit 3664077
Showing
2 changed files
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters