[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

@@ -64,7 +64,7 @@ function authenticate(connection: websocket.connection, token: string): Promise<
resolve(user);
} else {
const userkey = await Userkey.findOne({
key: token
hash: token
});
if (userkey == null) {