Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
fix(logging): log emailRecord.uid as a hex string, not a byte array
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgm committed Mar 12, 2015
1 parent 48ff9fa commit b9a1f67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion routes/account.js
Expand Up @@ -754,7 +754,7 @@ module.exports = function (
log.info({
op: 'account.lock',
email: emailRecord.email,
uid: emailRecord.uid
uid: emailRecord.uid.toString('hex')
})
return db.lockAccount(emailRecord)
}
Expand Down
2 changes: 1 addition & 1 deletion routes/utils/password_check.js
Expand Up @@ -31,7 +31,7 @@ module.exports = function (log, config, Password, customs, db) {
log.info({
op: 'account.lock',
email: emailRecord.email,
uid: emailRecord.uid
uid: emailRecord.uid.toString('hex')
})
if (config.lockoutEnabled) {
return db.lockAccount(emailRecord)
Expand Down

0 comments on commit b9a1f67

Please sign in to comment.