Skip to content

Commit

Permalink
[backend] Redirect after verification
Browse files Browse the repository at this point in the history
  • Loading branch information
MananGandhi1810 committed Nov 24, 2024
1 parent dcef11a commit 2fe2935
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions backend/handlers/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,7 @@ const verifyHandler = async (req, res) => {
.status(500)
.send("There was an error in verifying your account");
}
res.send(
`Your account has been verified successfully. Click <a href="${
req.protocol
}://${req.get("host")}/">here</a> to go to Online IDE`,
);
res.redirect(`${process.env.FRONTEND_URL}/login`);
};

const loginHandler = async (req, res) => {
Expand Down

0 comments on commit 2fe2935

Please sign in to comment.