Implement API update user

This commit is contained in:
lethemanh
2025-01-09 12:46:58 +07:00
parent c0dd24cc74
commit ac8b777a59
6 changed files with 189 additions and 17 deletions
+4
View File
@@ -87,3 +87,7 @@ export async function formatUser(
return resUser;
}
export function formatUsername(value: string) {
return (value?.replace(/[^a-z0-9_-]/, "") || "").toLocaleLowerCase();
}