|
|
@ -108,6 +108,7 @@ exports.verifyUser = async (req, reply) => {
|
|
|
|
// check if user exists in the system. If user exists , display message that
|
|
|
|
// check if user exists in the system. If user exists , display message that
|
|
|
|
// phone number is not available
|
|
|
|
// phone number is not available
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
userExists = await User.findOne({ phone: phone });
|
|
|
|
userExists = await User.findOne({ phone: phone });
|
|
|
|
if (userExists) {
|
|
|
|
if (userExists) {
|
|
|
|
// return user exists message
|
|
|
|
// return user exists message
|
|
|
|