Now fix the server side check lol
This commit is contained in:
parent
f9d080a03d
commit
02f15ea736
@ -58,7 +58,7 @@ export async function onRequestPost(context: RequestContext) {
|
|||||||
if (
|
if (
|
||||||
roblox_username.length < 3 ||
|
roblox_username.length < 3 ||
|
||||||
roblox_username.length > 20 ||
|
roblox_username.length > 20 ||
|
||||||
roblox_username.match(/\D/) ||
|
roblox_username.match(/\W/) ||
|
||||||
roblox_username.match(/_/g)?.length > 1
|
roblox_username.match(/_/g)?.length > 1
|
||||||
)
|
)
|
||||||
return jsonError("Username is invalid", 400);
|
return jsonError("Username is invalid", 400);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user