diff options
Diffstat (limited to 'src/api/routes/users/@me/mfa/totp/enable.ts')
-rw-r--r-- | src/api/routes/users/@me/mfa/totp/enable.ts | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/api/routes/users/@me/mfa/totp/enable.ts b/src/api/routes/users/@me/mfa/totp/enable.ts index 75c64425..2c7044da 100644 --- a/src/api/routes/users/@me/mfa/totp/enable.ts +++ b/src/api/routes/users/@me/mfa/totp/enable.ts @@ -23,9 +23,6 @@ router.post( select: ["data", "email"], }); - if (user.email == "demo@maddy.k.vu") - throw new HTTPError("Demo user, sorry", 400); - // TODO: Are guests allowed to enable 2fa? if (user.data.hash) { if (!(await bcrypt.compare(body.password, user.data.hash))) { |