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.