users: replace modifiedAt with ts

This commit is contained in:
Girish Ramakrishnan
2020-07-09 15:43:22 -07:00
parent d512a9c30d
commit f94ff49fb9
8 changed files with 20 additions and 16 deletions

View File

@@ -183,7 +183,6 @@ function create(username, password, email, displayName, options, auditSource, ca
password: Buffer.from(derivedKey, 'binary').toString('hex'),
salt: salt.toString('hex'),
createdAt: now,
modifiedAt: now,
resetToken: '',
displayName: displayName,
source: source,
@@ -524,7 +523,6 @@ function setPassword(user, newPassword, callback) {
if (error) return callback(new BoxError(BoxError.CRYPTO_ERROR, error));
let data = {
modifiedAt: (new Date()).toISOString(),
password: Buffer.from(derivedKey, 'binary').toString('hex'),
resetToken: ''
};