Trim username on login

User username of email address can't have a space so it's safe to trim
the input (extra space can be easily added by pastes in some cases)
This commit is contained in:
Chocobozzz 2024-02-15 14:12:56 +01:00
parent a012d6c2a9
commit 331e7cb3c5
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ Ensure you have correctly configured PeerTube (config/ directory), in particular
response_type: 'code',
grant_type: 'password',
scope: 'upload',
username,
username: (username || '').trim(),
password
}