mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-30 18:15:41 +00:00
Remove Slowcord demo user restrictions
This commit is contained in:
@@ -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))) {
|
||||
|
||||
Reference in New Issue
Block a user