done
This commit is contained in:
parent
b2b9b48fca
commit
37d8427601
|
@ -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}`;
|
const url = `Click on the link ${process.env.RETURN_URL}/users/${result._id}/verify/${token}`;
|
||||||
await sendEmail(result.email, "Verify Email", url);
|
await sendEmail(result.email, "Verify Email", url);
|
||||||
console.log("url", url);
|
|
||||||
|
|
||||||
// Send the user info and token back to the client
|
// Send the user info and token back to the client
|
||||||
res.status(201).json({ result, token });
|
res.status(201).json({ result, token });
|
||||||
|
|
|
@ -32,7 +32,7 @@ export const sendEmail = async (email, subject, text) => {
|
||||||
text: text,
|
text: text,
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log("Email sent successfully");
|
// console.log("Email sent successfully");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log("Email not sent!");
|
console.log("Email not sent!");
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -27,7 +27,7 @@
|
||||||
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css">
|
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css">
|
||||||
<!-- fonts -->
|
<!-- 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">
|
<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">
|
<link rel="stylesheet" crossorigin href="/assets/index-CyAHZLBw.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
|
@ -17,26 +17,23 @@ const VerifyUser = () => {
|
||||||
|
|
||||||
return (
|
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">
|
<p className="card-title text-center">
|
||||||
{" "}
|
<NavLink to="/login" className="glightbox play-btn mb-4">
|
||||||
Please
|
{" "}
|
||||||
<span style={{ color: "#F74B02" }}> login </span> {" "}
|
Email verified successfully !!! Please
|
||||||
to access ...
|
<span style={{ color: "#F74B02" }}> login </span> {" "}
|
||||||
</NavLink>
|
to access ...
|
||||||
</p>
|
</NavLink>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<br /> <br />
|
||||||
|
|
||||||
<Footer />
|
<Footer />
|
||||||
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue