Commit 9dfd08a7 authored by Rosanny Sihombing's avatar Rosanny Sihombing
Browse files

Merge branch 'MLAB-539' into 'testing'

fixing bug MLAB-539

See merge request !99
parents 44f5dcc8 0858e1d4
Pipeline #4636 passed with stage
in 20 seconds
......@@ -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