mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-05-06 14:37:55 +02:00
fix(users): user passowrd & salt value lose
This commit is contained in:
@@ -261,8 +261,9 @@ UserSchema.methods.hashPassword = function (password) {
|
||||
* update user last signed time
|
||||
*/
|
||||
UserSchema.methods.updateSignedTime = function () {
|
||||
this.last_signed = Date.now();
|
||||
this.save();
|
||||
this.update({
|
||||
$set: {last_signed: Date.now()}
|
||||
}).exec();
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user