소스 검색

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

Kristian Vos 5 년 전
부모
커밋
6a07dd5c05
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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);
 						});