mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2025-12-19 05:47:46 +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
|
||||
}, '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 */
|
||||
|
||||
Reference in New Issue
Block a user