Skip to content

Commit

Permalink
Merge pull request pencilblue#1108 from pencilblue/issue/1106
Browse files Browse the repository at this point in the history
Fixes pencilblue#1106 - fixes a bug that did not cast the ObjectID to a string
  • Loading branch information
brianhyder authored Jul 26, 2016
2 parents 1afa485 + 83040ee commit 9879890
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ module.exports = function (pb) {
if (!data.user) {
self.formError(self.ls.get('INVALID_VERIFICATION'), '/user/login', cb);
}
self.passwordResetService.getSingle({where: {userId: data.user.id, verificationCode: self.query.code}}, callback);
self.passwordResetService.getSingle({where: {userId: data.user.id + '', verificationCode: self.query.code}}, callback);
}],
deletePasswordReset: ['user', 'passwordReset', function(callback, data) {

Expand Down

0 comments on commit 9879890

Please sign in to comment.