overleaf/services/web/app/src
Domagoj Kriskovic af4b22fab5 Confirm email new routes (#15377)
* confirm email routes

* Style the email confirmation template (#15196)

* error handling

* prettier

* error message

* rename variables

* message codes change

* v1 redirect

* fix assigning to session

* rename rate limitter

* rate limitter per email

* add try/catch

* added stub

* prettier

* confirm email acceptance test

* confirm when created

* tests

* added rate limit tests

* new email text

* subscribe to newsletter

* beforeEach/afterEach test both variants

* move tests to OverleafAuthenticationTests

* Revert "move tests to OverleafAuthenticationTests"

This reverts commit 3c745382815da1594044a811882ba3daa24a7a3a.

* cacheflow reset after each

* remove test archive request

* use crypto for random code

* rate limit in userEmailsConfirmationHandler

* ratelimiter per type

* req.session.pendingUserRegistration

* spy in before/after each

* without deleteMany

* delete staffUser in afterEach

* stub response, format

* rate limiter outside userEmailConfirmationHandler

* mock ratelimitter

* fix subscribe promise

* add email to logger

* logger calls

* using tsscmp

* fix lint

* resendConfirmationCode rate limiter in router

* remove redirect

---------

Co-authored-by: Rebeka Dekany <50901361+rebekadekany@users.noreply.github.com>
GitOrigin-RevId: 786c477966cf2c5f6e28417fe486146ee5c10884
2023-11-02 08:52:48 +00:00
..
Features Confirm email new routes (#15377) 2023-11-02 08:52:48 +00:00
infrastructure Merge pull request #15514 from overleaf/jpa-single-webpack-runtime 2023-11-01 09:03:16 +00:00
models [web] SSO linking for existing group members (#15471) 2023-11-01 09:03:19 +00:00
util Merge pull request #15172 from overleaf/em-promise-utils 2023-10-20 08:04:05 +00:00
router.js Merge pull request #15242 from overleaf/mf-index-all-references-after-bib-is-modified 2023-10-19 08:03:25 +00:00