mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-24 08:19:48 +01:00
check joindate
This commit is contained in:
@@ -28,7 +28,7 @@ module.exports = {
|
||||
user.getUserFields(uid, ['username', 'joindate'], next);
|
||||
},
|
||||
(userdata, next) => {
|
||||
if (!userdata) {
|
||||
if (!userdata || !userdata.joindate) {
|
||||
return setImmediate(next);
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ module.exports = {
|
||||
user.getUserFields(uid, ['email', 'joindate'], next);
|
||||
},
|
||||
(userdata, next) => {
|
||||
if (!userdata) {
|
||||
if (!userdata || !userdata.joindate) {
|
||||
return setImmediate(next);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user