This commit is contained in:
noot
2024-01-30 15:58:05 +08:00
parent 884209ee9c
commit 4346f92471
10 changed files with 2357 additions and 1119 deletions

View File

@@ -152,6 +152,17 @@ async function checkEmail(email) {
}
async function checkEmailDetails(email) {
let emailRes = await userModel.findOne({
where: {
email: email,
},
});
if (!emailRes) return false;
return emailRes;
}
module.exports = {
getUserByID,
@@ -159,5 +170,6 @@ module.exports = {
addUser,
loginUser,
updateProfile,
checkEmail
checkEmail,
checkEmailDetails
};