Skip to content
Permalink
Browse files

fix(accounts): new users have accessToken by default

  • Loading branch information...
polonel committed Mar 16, 2019
1 parent 24a590b commit 4f36bb4058805fde07e62cd58d99d14be427ece9
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/controllers/api/v1/tickets.js
  2. +1 −1 src/controllers/api/v1/users.js
@@ -456,7 +456,7 @@ apiTickets.createPublicTicket = function (req, res) {
password: plainTextPass,
fullname: postData.user.fullname,
email: postData.user.email,
accesstoken: chance.hash(),
accessToken: chance.hash(),
role: roleDefault.value
})

@@ -182,7 +182,7 @@ apiUsers.create = function (req, res) {
password: postData.aPass,
fullname: postData.aFullname,
email: postData.aEmail,
accesstoken: chance.hash(),
accessToken: chance.hash(),
role: postData.aRole
})

0 comments on commit 4f36bb4

Please sign in to comment.
You can’t perform that action at this time.