Skip to content

Commit

Permalink
feat: redirect deleted users to front page
Browse files Browse the repository at this point in the history
  • Loading branch information
aalemayhu committed Feb 17, 2023
1 parent 0adb047 commit b3828e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/users/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ router.get('/logout', RequireAuthentication, async (req, res, next) => {
.del()
.then(() => {
Sentry.setUser(null);
res.status(200).end();
res.redirect('https://2anki.net');
})
.catch((err) => {
sendError(err);
Expand Down

0 comments on commit b3828e9

Please sign in to comment.