[BREAKING CHANGE] Improve security

This commit is contained in:
syuilo
2017-01-06 11:50:46 +09:00
parent 86548f6468
commit 9458245382
5 changed files with 19 additions and 3 deletions

View File

@ -43,7 +43,7 @@ export default (req: express.Request) => new Promise<IAuthContext>(async (resolv
});
} else {
const userkeyDoc = await Userkey.findOne({
key: token
hash: token
});
if (userkeyDoc === null) {