summary refs log tree commit diff
path: root/src/api/routes/users/@me/mfa/totp/enable.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-17 17:32:10 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-17 17:32:10 +1100
commitec6666edee71bfddf971f834cfc89e89f930bf01 (patch)
treecef1497b3723bd707951ae999956f097333c91a5 /src/api/routes/users/@me/mfa/totp/enable.ts
parentRemove use of `PRODUCTION` env var (diff)
downloadserver-ec6666edee71bfddf971f834cfc89e89f930bf01.tar.xz
Remove Slowcord demo user restrictions
Diffstat (limited to '')
-rw-r--r--src/api/routes/users/@me/mfa/totp/enable.ts3
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))) {