v1.18.x
barisusakli 9 years ago
parent f8b494bc1f
commit ad1ffdfd81

@ -36,8 +36,7 @@ var async = require('async'),
var code = utils.generateUUID();
async.parallel([
async.apply(db.setObjectField, 'reset:uid', code, uid),
async.apply(db.sortedSetAdd, 'reset:issueDate', Date.now(), code),
async.apply(db.sortedSetAdd, 'reset:issueDate:uid', Date.now(), uid),
async.apply(db.sortedSetAdd, 'reset:issueDate', Date.now(), code)
], function(err) {
callback(err, code);
});
@ -71,6 +70,9 @@ var async = require('async'),
uid = _uid;
canGenerate(uid, next);
},
function(next) {
db.sortedSetAdd('reset:issueDate:uid', Date.now(), uid, next);
},
function(next) {
UserReset.generate(uid, next);
},

Loading…
Cancel
Save