Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
les
gancio
Commits
b52d3a46
Commit
b52d3a46
authored
Oct 14, 2019
by
les
Browse files
[fix] register email confirmation
parent
aa63c3e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/api/controller/user.js
View file @
b52d3a46
...
...
@@ -229,11 +229,11 @@ const userController = {
if
(
!
req
.
body
.
password
)
{
delete
req
.
body
.
password
}
await
user
.
update
(
req
.
body
)
if
(
!
user
.
is_active
&&
req
.
body
.
is_active
&&
user
.
recover_code
)
{
mail
.
send
(
user
.
email
,
'
confirm
'
,
{
user
,
config
})
}
await
user
.
update
(
req
.
body
)
res
.
json
(
user
)
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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