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:
parent
918399e0ca
commit
6f2adbcc73
1 changed files with 1 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue