mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 00:15:46 +01:00
part 1
no upgrade script yet
This commit is contained in:
@@ -51,6 +51,9 @@ module.exports = function(User) {
|
||||
function(next) {
|
||||
db.sortedSetRemove('username:uid', userData.username, next);
|
||||
},
|
||||
function(next) {
|
||||
db.sortedSetRemove('username:sorted', userData.username.toLowerCase() + ':' + uid, next);
|
||||
},
|
||||
function(next) {
|
||||
db.sortedSetRemove('userslug:uid', userData.userslug, next);
|
||||
},
|
||||
@@ -59,7 +62,10 @@ module.exports = function(User) {
|
||||
},
|
||||
function(next) {
|
||||
if (userData.email) {
|
||||
db.sortedSetRemove('email:uid', userData.email.toLowerCase(), next);
|
||||
async.parallel([
|
||||
async.apply(db.sortedSetRemove, 'email:uid', userData.email.toLowerCase()),
|
||||
async.apply(db.sortedSetRemove, 'email:sorted', userData.email.toLowerCase() + ':' + uid)
|
||||
], next);
|
||||
} else {
|
||||
next();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user