Handle invalid unsubscriptions #7690
+21
−0
BKinahan
commented
BerkeleyTrue
commented on an outdated diff
server/boot/randomAPIs.js
}); | ||
- return res.redirect('/unsubscribed'); | ||
- }); | ||
+ return res.redirect('/map'); | ||
+ } else { | ||
+ return user.updateAttribute('sendMonthlyEmail', false, (err) => { |
BerkeleyTrue
added a note
This
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add logic to handle requests to server for e-mail unsubscribe URLs when a matching user is not found.
Redirects to /map and informs the user to update e-mail settings from their profile.
Tested locally for each link, for both valid and invalid e-mail addresses, and passes
npm test
.Closes #7686.