mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-04 21:15:55 +01:00
check username
This commit is contained in:
@@ -53,7 +53,7 @@ module.exports = function (User) {
|
||||
db.getObject('user:' + uid, next);
|
||||
},
|
||||
function (_userData, next) {
|
||||
if (!_userData) {
|
||||
if (!_userData || !_userData.username) {
|
||||
return callback();
|
||||
}
|
||||
userData = _userData;
|
||||
|
||||
Reference in New Issue
Block a user