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:
parent
a012d6c2a9
commit
331e7cb3c5
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue