remove activation code from response (#513)

This commit is contained in:
Sam Machin
2025-11-12 18:13:09 +00:00
committed by GitHub
parent 4c86adf1f7
commit 486428727a

View File

@@ -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 */