We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 633eea1 commit 98ae307Copy full SHA for 98ae307
1 file changed
apps/web/src/routes/_app/admin/users/create.tsx
@@ -24,6 +24,7 @@ const RouteComponent = () => {
24
// check if username exists
25
26
const exisitingUsername = await axios.get(`/v1/users/check-username/${encodeURIComponent(data.username)}`);
27
+
28
if (exisitingUsername) {
29
return { success: false, errorMessage: t('common.usernameExists') };
30
}
@@ -147,7 +148,7 @@ const RouteComponent = () => {
147
148
groupIds: z.set(z.string()).optional(),
149
confirmPassword: z.string().min(1)
150
})
- .check(async (ctx) => {
151
+ .check((ctx) => {
152
if (!estimatePasswordStrength(ctx.value.password).success) {
153
ctx.issues.push({
154
code: 'custom',
0 commit comments