mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 16:27:27 +02:00
User.exists change
This commit is contained in:
@@ -199,7 +199,7 @@ module.exports = function(User) {
|
||||
var newUsername = '';
|
||||
async.forever(function(next) {
|
||||
newUsername = userData.username + (Math.floor(Math.random() * 255) + 1);
|
||||
User.exists(newUsername, function(err, exists) {
|
||||
User.existsBySlug(newUsername, function(err, exists) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user