From 331e7cb3c5089567a16539d0fb990205388be72e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 15 Feb 2024 14:12:56 +0100 Subject: [PATCH] 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) --- client/src/app/core/auth/auth.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/core/auth/auth.service.ts b/client/src/app/core/auth/auth.service.ts index cadf78c0c..341ff8637 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 }