mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 08:43:02 +00:00
Security: make sure the security key matches up with the user by last TOTP ticket
This commit is contained in:
1 parent
7e152be9dd
commit
f89ee5e24a
1 file changed
+1
@@ -72,6 +72,7 @@ router.post(
|
||||
|
||||
const securityKey = await SecurityKey.findOneOrFail({
|
||||
where: {
|
||||
user_id: user.id,
|
||||
key_id: Buffer.from(clientAttestationResponse.rawId, "base64url").toString("base64"),
|
||||
},
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user