Browse Source

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

Kristian Vos 5 years ago
parent
commit
6a07dd5c05
1 changed files with 1 additions and 0 deletions
  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);
 						});