Remove Slowcord demo user restrictions

This commit is contained in:
Madeline committed 2022-12-17 17:32:10 +11:00
1 parent eafa93b035
commit ec6666edee
2 files changed
-6

No files matched your search

-3
View File
@@ -36,9 +36,6 @@ router.patch(
select: [...PrivateUserProjection, "data"],
});
if (user.email == "demo@maddy.k.vu")
throw new HTTPError("Demo user, sorry", 400);
if (body.avatar)
body.avatar = await handleFile(
`/avatars/${req.user_id}`,
@@ -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))) {