From ccda23ec6058164e50ba7bb5ca10d4ae9e7d05f3 Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Mon, 12 Mar 2018 16:49:44 -0600 Subject: [PATCH] fixed bug with endpoint --- routes/api/v1/users.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/routes/api/v1/users.js b/routes/api/v1/users.js index 8c1a7b7f3..e0de3b5db 100644 --- a/routes/api/v1/users.js +++ b/routes/api/v1/users.js @@ -11,7 +11,13 @@ router.post('/', async (req, res, next) => { const redirectUri = req.header('X-Pym-Url') || req.header('Referer'); try { - let user = await UsersService.createLocalUser(email, password, username); + // Adjusted the user creation endpoint. + let user = await UsersService.createLocalUser( + req.context, + email, + password, + username + ); // Send an email confirmation. The Front end will know about the // requireEmailConfirmation as it's included in the settings get endpoint.