Revert profile cosmetics and GeoCoin currency
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 6m16s
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 6m16s
This commit is contained in:
@@ -43,26 +43,13 @@ export const profileUpdateSchema = z
|
||||
displayName: displayNameSchema.optional(),
|
||||
glowColor: glowColorSchema.optional(),
|
||||
avatarPath: z.string().max(128).nullable().optional(),
|
||||
bio: z
|
||||
.string()
|
||||
.trim()
|
||||
.max(280, "Use at most 280 characters")
|
||||
.refine(
|
||||
(value) =>
|
||||
!/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f-\u009f\u202a-\u202e\u2066-\u2069<>]/u.test(
|
||||
value,
|
||||
),
|
||||
"Use plain text without hidden controls or markup",
|
||||
)
|
||||
.optional(),
|
||||
})
|
||||
.strict()
|
||||
.refine(
|
||||
(value) =>
|
||||
value.displayName !== undefined ||
|
||||
value.glowColor !== undefined ||
|
||||
value.avatarPath !== undefined ||
|
||||
value.bio !== undefined,
|
||||
value.avatarPath !== undefined,
|
||||
"Choose a profile change",
|
||||
);
|
||||
export const initialPasswordSchema = z
|
||||
|
||||
Reference in New Issue
Block a user