From 18a100da0d4c9498e23320a61df8baa54d2a4ce4 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Thu, 10 Oct 2024 10:51:48 +0800 Subject: [PATCH] fix: username length validation in user creation form is not working Signed-off-by: Ryan Wang --- .../modules/system/users/components/UserCreationModal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/console-src/modules/system/users/components/UserCreationModal.vue b/ui/console-src/modules/system/users/components/UserCreationModal.vue index 5401b08594..37a7e4f050 100644 --- a/ui/console-src/modules/system/users/components/UserCreationModal.vue +++ b/ui/console-src/modules/system/users/components/UserCreationModal.vue @@ -84,7 +84,7 @@ const handleCreateUser = async () => { name="name" :validation="[ ['required'], - ['length:0,63'], + ['length', 0, 63], [ 'matches', /^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/,