Browse Source

refactor: small change in addition to latest fix to make it more secure

Kristian Vos 5 năm trước cách đây
mục cha
commit
6a07dd5c05
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      backend/logic/app.js

+ 1 - 0
backend/logic/app.js

@@ -129,6 +129,7 @@ module.exports = class extends coreClass {
 								}
 							], next);
 						}
+						if (!body.id) return next("Something went wrong, no id.");
 						db.models.user.findOne({'services.github.id': body.id}, (err, user) => {
 							next(err, user, body);
 						});