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

Commit

Permalink
Merge pull request #485 from dannycoates/created-time
Browse files Browse the repository at this point in the history
added 'created' to all tokens and 'generation' to accounts
  • Loading branch information
dannycoates committed Jan 13, 2014
2 parents f0ad26e + e5d637c commit 4b0bb50
Show file tree
Hide file tree
Showing 7 changed files with 195 additions and 94 deletions.
1 change: 1 addition & 0 deletions db/heap.js
Expand Up @@ -62,6 +62,7 @@ module.exports = function (
email: data && data.email
}
)
data.verifierSetAt = Date.now()
data.normalizedEmail = data.email.toLowerCase()
this.accounts[data.uid.toString('hex')] = data
this.emailRecords[data.normalizedEmail] = data.uid.toString('hex')
Expand Down

0 comments on commit 4b0bb50

Please sign in to comment.