1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-06 02:42:37 +01:00

Merge branch 'fix/claim_accounts' into slowcord

This commit is contained in:
Madeline 2022-07-07 23:37:05 +10:00
commit e06891d291
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47

View File

@ -54,6 +54,8 @@ router.patch("/", route({ body: "UserModifySchema" }), async (req: Request, res:
body.email = adjustEmail(body.email);
if (!body.email)
throw FieldErrors({ email: { message: req.t("auth:register.EMAIL_INVALID"), code: "EMAIL_INVALID" } });
if (!body.password)
throw FieldErrors({ password: { message: req.t("auth:register.INVALID_PASSWORD"), code: "INVALID_PASSWORD" } })
}
if (body.new_password) {