Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Trim username on login

Chocobozzz331e7cb3c508
diff --git a/client/src/app/core/auth/auth.service.ts b/client/src/app/core/auth/auth.service.ts
index cadf78c0cf..341ff86371 100644
--- a/client/src/app/core/auth/auth.service.ts
+++ b/client/src/app/core/auth/auth.service.ts
@@ -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
}