Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jay Mehta
/
strapi-setup-file
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Registry
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit ab332799
authored
2022-09-30 12:53:59 +0530
by
Harish Patel
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug fix
1 parent
52600bee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
src/api/end-user/controllers/end-user.js
src/api/end-user/controllers/end-user.js
View file @
ab33279
...
@@ -60,6 +60,18 @@ module.exports = factories.createCoreController(
...
@@ -60,6 +60,18 @@ module.exports = factories.createCoreController(
password
:
oneTimePassword
,
password
:
oneTimePassword
,
});
});
// 5. change from draft to published.
await
strapi
.
entityService
.
update
(
"api::end-user.end-user"
,
endUser
.
id
,
{
data
:
{
publishedAt
:
new
Date
(),
},
}
);
// TODO: at this point we might have to invoke a Hiranandani API to send the newly registered user there.
// TODO: at this point we might have to invoke a Hiranandani API to send the newly registered user there.
ctx
.
send
({
ok
:
true
,
message
:
"user registered"
});
ctx
.
send
({
ok
:
true
,
message
:
"user registered"
});
},
},
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment