mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-09 08:07:37 +01:00
proof of concept for #5740
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user