mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-01-25 02:08:24 +00:00
remove activation code from response (#513)
This commit is contained in:
@@ -392,6 +392,8 @@ router.post('/', async(req, res) => {
|
|||||||
account_sid: userProfile.account_sid
|
account_sid: userProfile.account_sid
|
||||||
}, 'generated jwt');
|
}, 'generated jwt');
|
||||||
|
|
||||||
|
// Remove activation code from the response data!
|
||||||
|
delete userProfile.email_activation_code;
|
||||||
res.json({jwt: token, ...userProfile});
|
res.json({jwt: token, ...userProfile});
|
||||||
|
|
||||||
/* Store jwt based on user_id after successful login */
|
/* Store jwt based on user_id after successful login */
|
||||||
|
|||||||
Reference in New Issue
Block a user