We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 231cb12 commit dc3f312Copy full SHA for dc3f312
1 file changed
web/lib/react/components/organization/user/update.tsx
@@ -20,7 +20,14 @@ import { createConnectQueryKey } from '@connectrpc/connect-query';
20
const generalSchema = yup
21
.object({
22
avatar: yup.string().optional(),
23
- title: yup.string().required('Name is required'),
+ title: yup
24
+ .string()
25
+ .required('Name is required')
26
+ .min(2, 'Name must be at least 2 characters')
27
+ .matches(
28
+ /^[a-zA-Z\s'-]+$/,
29
+ 'Name can only contain letters, spaces, hyphens, and apostrophes'
30
+ ),
31
email: yup.string().email().required()
32
})
33
.required();
0 commit comments