Commit 0858e1d4 authored by Rosanny Sihombing's avatar Rosanny Sihombing
Browse files

fixing bug MLAB-539

parent 44f5dcc8
......@@ -92,6 +92,17 @@ export = function (app:any, config:any, lang:string) {
])
}
})
// to check whether or not an account is already exist
app.get('/email/:email', async function(req:any, res:any) {
let user = await methods.checkUserEmail(req.params.email)
if (!user) {
console.log('No user found: '+req.params.email)
res.send(true)
} else {
console.log('User found: '+req.params.email)
res.send(false)
}
})
// =================== USERS VERIFICATION =========================
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment