mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-25 06:16:40 +00:00
added reset password workflow
This commit is contained in:
@@ -19,10 +19,6 @@ export async function verifyTotpCode(
|
||||
decodeHex(secret),
|
||||
);
|
||||
|
||||
if (!validOTP) {
|
||||
await new Promise((resolve) => setTimeout(resolve, 250)); // delay to prevent brute force attack
|
||||
}
|
||||
|
||||
return validOTP;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user