Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 516057 - Exception in orion.eclipse.org (TypeError: callback is n…
…ot a function)
  • Loading branch information
squarti committed May 2, 2017
1 parent fdf0d1e commit 2ccd345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/orionode/lib/user.js
Expand Up @@ -465,7 +465,7 @@ module.exports.router = function(options) {
return res.end();
}
crypto.randomBytes(AUTH_TOKEN_BYTES, function(randomBytes) {
store.updateUser({ authToken: randomBytes }, function(err, user) {
store.updateUser(user.username, { authToken: randomBytes }, function(err, user) {
if (err) {
logError(err);
res.status(500).json({ Severity: "Error", Message: "Error updating user" });
Expand Down

0 comments on commit 2ccd345

Please sign in to comment.