Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
User Account
Commits
0858e1d4
Commit
0858e1d4
authored
Aug 04, 2021
by
Rosanny Sihombing
Browse files
fixing bug MLAB-539
parent
44f5dcc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
routes/public.ts
View file @
0858e1d4
...
...
@@ -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 =========================
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment