Commit e76f69a
committed
fix(auth, settings): Use redis to store unconfirmed secondary email
Because:
* We don't want to hold on to unconfirmed secondary emails
* Let's use Redis to store the temporary entry and only add to db once verified
This commit:
* Update emails route handlers to use Redis
* Add new error type
* Update front end to handle the flow changes
* Update tests
Closes #FXA-125481 parent ec581fe commit e76f69a
File tree
16 files changed
+1282
-833
lines changed- packages
- functional-tests/tests/settings
- fxa-auth-server
- config
- lib
- routes
- test
- local/routes
- remote
- fxa-settings/src
- components/Settings
- PageSecondaryEmailAdd
- PageSecondaryEmailVerify
- UnitRowSecondaryEmail
- lib/auth-errors
- models
16 files changed
+1282
-833
lines changedLines changed: 1 addition & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | 219 | | |
235 | 220 | | |
236 | 221 | | |
| |||
274 | 259 | | |
275 | 260 | | |
276 | 261 | | |
277 | | - | |
| 262 | + | |
278 | 263 | | |
279 | 264 | | |
280 | 265 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
507 | | - | |
508 | | - | |
| 507 | + | |
509 | 508 | | |
510 | 509 | | |
511 | 510 | | |
| |||
1749 | 1748 | | |
1750 | 1749 | | |
1751 | 1750 | | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
1752 | 1757 | | |
1753 | 1758 | | |
1754 | 1759 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
586 | | - | |
587 | | - | |
| 586 | + | |
588 | 587 | | |
589 | 588 | | |
590 | 589 | | |
| |||
810 | 809 | | |
811 | 810 | | |
812 | 811 | | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
813 | 821 | | |
814 | 822 | | |
815 | 823 | | |
| |||
0 commit comments