From 18567a85a33834d50dc83618184795b49b223fbc Mon Sep 17 00:00:00 2001 From: Nizamudeen A Date: Tue, 26 Mar 2024 14:34:23 +0530 Subject: [PATCH] mgr/dashboard: fix rgw display name validation the dot(.) character is allowed in full name Fixes: https://tracker.ceph.com/issues/65146 Signed-off-by: Nizamudeen A (cherry picked from commit 8118a32ec578455b6c2cb4000f2bbee234ae9117) --- .../app/ceph/rgw/rgw-user-form/rgw-user-form.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-form/rgw-user-form.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-form/rgw-user-form.component.ts index b2cb7d6518d93..ec23ca0f7ba11 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-form/rgw-user-form.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-form/rgw-user-form.component.ts @@ -98,7 +98,10 @@ export class RgwUserFormComponent extends CdForm implements OnInit { ) ] ], - display_name: [null, [Validators.required, Validators.pattern(/^[a-zA-Z0-9!@#%^&*()_ -]+$/)]], + display_name: [ + null, + [Validators.required, Validators.pattern(/^[a-zA-Z0-9!@#%^&*()._ -]+$/)] + ], email: [ null, [CdValidators.email], -- 2.39.5