Skip to content

Commit

Permalink
fix(accounts): new users have accessToken by default
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Mar 16, 2019
1 parent 24a590b commit 4f36bb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/controllers/api/v1/tickets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
})

Expand Down
2 changes: 1 addition & 1 deletion src/controllers/api/v1/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
})

Expand Down

0 comments on commit 4f36bb4

Please sign in to comment.