users: replace modifiedAt with ts
This commit is contained in:
@@ -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: ''
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user