diff --git a/lib/routes/api/register.js b/lib/routes/api/register.js index f852465..94d0525 100644 --- a/lib/routes/api/register.js +++ b/lib/routes/api/register.js @@ -392,6 +392,8 @@ router.post('/', async(req, res) => { account_sid: userProfile.account_sid }, 'generated jwt'); + // Remove activation code from the response data! + delete userProfile.email_activation_code; res.json({jwt: token, ...userProfile}); /* Store jwt based on user_id after successful login */