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