mirror of
https://github.com/spacebarchat/server.git
synced 2026-09-02 02:39:00 +00:00
Security: make sure the security key matches up with the user by last TOTP ticket
This commit is contained in:
@@ -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