Ver Fonte

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

Kristian Vos há 5 anos atrás
pai
commit
6a07dd5c05
1 ficheiros alterados com 1 adições e 0 exclusões
  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);
 						});