Skip to content

Commit dd6049f

Browse files
authored
Merge pull request ceph#56470 from rhcs-dashboard/fix-full-name-validation-rgw
mgr/dashboard: fix rgw display name validation Reviewed-by: afreen23 <NOT@FOUND> Reviewed-by: Ankush Behl <[email protected]>
2 parents 87a931c + 8118a32 commit dd6049f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-form/rgw-user-form.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ export class RgwUserFormComponent extends CdForm implements OnInit {
9898
)
9999
]
100100
],
101-
display_name: [null, [Validators.required, Validators.pattern(/^[a-zA-Z0-9!@#%^&*()_ -]+$/)]],
101+
display_name: [
102+
null,
103+
[Validators.required, Validators.pattern(/^[a-zA-Z0-9!@#%^&*()._ -]+$/)]
104+
],
102105
email: [
103106
null,
104107
[CdValidators.email],

0 commit comments

Comments
 (0)