forked from naskya/firefish
feat(backend): remove 2fa requirement for security keys
This commit is contained in:
parent
846e69fe7b
commit
7ceaa9c090
2 changed files with 0 additions and 8 deletions
|
@ -47,10 +47,6 @@ export default define(meta, paramDef, async (ps, user) => {
|
|||
throw new Error("incorrect password");
|
||||
}
|
||||
|
||||
if (!profile.twoFactorEnabled) {
|
||||
throw new Error("2fa not enabled");
|
||||
}
|
||||
|
||||
const clientData = JSON.parse(ps.clientDataJSON);
|
||||
|
||||
if (clientData.type !== "webauthn.create") {
|
||||
|
|
|
@ -32,10 +32,6 @@ export default define(meta, paramDef, async (ps, user) => {
|
|||
throw new Error("incorrect password");
|
||||
}
|
||||
|
||||
// if (!profile.twoFactorEnabled) {
|
||||
// throw new Error("2fa not enabled");
|
||||
// }
|
||||
|
||||
// 32 byte challenge
|
||||
const entropy = await randomBytes(32);
|
||||
const challenge = entropy
|
||||
|
|
Loading…
Reference in a new issue