mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-03 00:09:03 +02:00
fix: use URI validation message for API resources
This commit is contained in:
@@ -511,6 +511,7 @@
|
||||
"ui_config_disabled_info_description": "The UI configuration is disabled because the application configuration settings are managed through environment variables. Some settings may not be editable.",
|
||||
"logo_from_url_description": "Paste a direct image URL (svg, png, webp). Find icons at {#link href=|https://selfh.st/icons|}Selfh.st Icons{/link} or {#link href=|https://dashboardicons.com|}Dashboard Icons{/link}.",
|
||||
"invalid_url": "Invalid URL",
|
||||
"invalid_uri": "Invalid URI",
|
||||
"require_user_email": "Require Email Address",
|
||||
"require_user_email_description": "Requires users to have an email address. If disabled, the users without an email address won't be able to use features that require an email address.",
|
||||
"view": "View",
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
const formSchema = z.object({
|
||||
name: z.string().min(1).max(50),
|
||||
resource: z
|
||||
.url()
|
||||
.url({ error: () => m.invalid_uri() })
|
||||
.min(1)
|
||||
.max(350)
|
||||
.refine((value) => !/[#\s]/.test(value), {
|
||||
|
||||
Reference in New Issue
Block a user