Skip to content

Commit

Permalink
feat: return back to profile after editing email
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Jul 30, 2021
1 parent b3c9164 commit 324a12b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controllers/accounts/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 324a12b

Please sign in to comment.