reindex user name after change, #745

v1.18.x
Baris Soner Usakli 11 years ago
parent 176ac54cdf
commit eb65c5ad1b

@ -307,6 +307,9 @@ var bcrypt = require('bcrypt'),
User.setUserField(uid, 'username', data.username);
db.deleteObjectField('username:uid', userData.username);
db.setObjectField('username:uid', data.username, uid);
db.searchRemove('user', uid, function() {
db.searchIndex('user', data.username, uid);
});
}
if(userslug !== userData.userslug) {

Loading…
Cancel
Save