[BREAKING CHANGE] Improve security
This commit is contained in:
parent
86548f6468
commit
9458245382
5 changed files with 19 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue