From: Nizamudeen A Date: Tue, 26 Mar 2024 09:04:23 +0000 (+0530) Subject: mgr/dashboard: fix rgw display name validation X-Git-Tag: v19.1.0~148^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=18567a85a33834d50dc83618184795b49b223fbc;p=ceph.git 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) --- 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],