proof of concept for #5740

This commit is contained in:
psychobunny
2017-06-20 16:12:55 -04:00
parent a509ccab84
commit 228e9ab8e3
4 changed files with 100 additions and 31 deletions

View File

@@ -283,7 +283,10 @@ module.exports = function (User) {
},
function (hashedPassword, next) {
async.parallel([
async.apply(User.setUserField, data.uid, 'password', hashedPassword),
async.apply(User.setUserFields, data.uid, {
password: hashedPassword,
rss_token: utils.generateUUID(),
}),
async.apply(User.reset.updateExpiry, data.uid),
async.apply(User.auth.revokeAllSessions, data.uid),
], function (err) {