1
0
Fork 0
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:
Jxiced 2025-02-21 21:38:32 +00:00
parent 30a76ad0bf
commit 4d383abe73

View file

@ -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'),