This commit is contained in:
omkieit 2024-09-07 20:53:45 +05:30
parent b2b9b48fca
commit 37d8427601
5 changed files with 30 additions and 34 deletions

View File

@ -42,7 +42,6 @@ export const signup = async (req, res) => {
const url = `Click on the link ${process.env.RETURN_URL}/users/${result._id}/verify/${token}`;
await sendEmail(result.email, "Verify Email", url);
console.log("url", url);
// Send the user info and token back to the client
res.status(201).json({ result, token });

View File

@ -32,7 +32,7 @@ export const sendEmail = async (email, subject, text) => {
text: text,
});
console.log("Email sent successfully");
// console.log("Email sent successfully");
} catch (error) {
console.log("Email not sent!");
console.error(error);

File diff suppressed because one or more lines are too long

View File

@ -27,7 +27,7 @@
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css">
<!-- fonts -->
<link href="https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;800&family=Sen:wght@400;700;800&display=swap" rel="stylesheet">
<script type="module" crossorigin src="/assets/index-DbUVEFXC.js"></script>
<script type="module" crossorigin src="/assets/index-DZjp67OJ.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CyAHZLBw.css">
</head>

View File

@ -17,26 +17,23 @@ const VerifyUser = () => {
return (
<>
<Navbar />
<br />
<br />
<br />
<br />
<br />
<br />
<p className="lead mb-5">Email verified successfully !!!</p>
<Navbar />
<p className="card-title text-center">
<NavLink to="/login" className="glightbox play-btn mb-4">
{" "}
Please
<span style={{ color: "#F74B02" }}> login </span> {" "}
to access ...
</NavLink>
</p>
<p className="card-title text-center">
<NavLink to="/login" className="glightbox play-btn mb-4">
{" "}
Email verified successfully !!! Please
<span style={{ color: "#F74B02" }}> login </span> {" "}
to access ...
</NavLink>
</p>
<br /> <br />
<Footer />
</>
);
};