mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Prevent whitespaces in username during wizard setup.
This commit is contained in:
parent
30a76ad0bf
commit
4d383abe73
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ function submit(form) {
|
||||||
.ajax({
|
.ajax({
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
data: JSON.stringify({
|
data: JSON.stringify({
|
||||||
Name: form.querySelector('#txtUsername').value,
|
Name: form.querySelector('#txtUsername').value.trim(),
|
||||||
Password: form.querySelector('#txtManualPassword').value
|
Password: form.querySelector('#txtManualPassword').value
|
||||||
}),
|
}),
|
||||||
url: apiClient.getUrl('Startup/User'),
|
url: apiClient.getUrl('Startup/User'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue