From 324a12b6c3bb8b09b7efe3dffc8ad109cedbcc5d Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 28 Jul 2021 15:16:22 -0400 Subject: [PATCH] feat: return back to profile after editing email --- src/controllers/accounts/edit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/accounts/edit.js b/src/controllers/accounts/edit.js index de5cf391f5..7bbe27cebf 100644 --- a/src/controllers/accounts/edit.js +++ b/src/controllers/accounts/edit.js @@ -92,6 +92,7 @@ editController.email = async function (req, res, next) { return next(); } + req.session.returnTo = `/uid/${targetUid}`; req.session.registration = req.session.registration || {}; req.session.registration.updateEmail = true; req.session.registration.uid = targetUid;