1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Validate changes to usernames before submission

This commit is contained in:
SHestres 2024-12-18 08:16:24 +00:00
parent 918399e0ca
commit 6f2adbcc73

View file

@ -327,6 +327,7 @@ const UserEdit = () => {
type='text'
id='txtUserName'
label='LabelName'
validator={{ pattern: '^([\\w \\-\'._@+]*)([\\w\\-\'._@+])([\\w \\-\'._@+]*)$', errMessage: 'Username must not be empty and contain only numbers, letters, spaces, or the following symbols -\'._@+' }}
options={'required'}
/>
</div>