done
This commit is contained in:
parent
50d695d2b9
commit
8015c67e47
|
@ -101,9 +101,9 @@ export const signin = async (req, res) => {
|
||||||
if (!isPasswordCorrect)
|
if (!isPasswordCorrect)
|
||||||
return res.status(400).json({ message: "Invalid credentials" });
|
return res.status(400).json({ message: "Invalid credentials" });
|
||||||
|
|
||||||
// if (!oldUser.verified) {
|
if (!oldUser.verified) {
|
||||||
// return res.status(401).json({ message: "User is not verified" });
|
return res.status(401).json({ message: "User is not verified" });
|
||||||
// }
|
}
|
||||||
|
|
||||||
const token = jwt.sign({ email: oldUser.email, id: oldUser._id }, secret, {
|
const token = jwt.sign({ email: oldUser.email, id: oldUser._id }, secret, {
|
||||||
expiresIn: "8h",
|
expiresIn: "8h",
|
||||||
|
|
Loading…
Reference in New Issue