From 5ba4c2618e90a9579fd9fa25acfb719f526aaec9 Mon Sep 17 00:00:00 2001 From: ganfra Date: Tue, 14 Mar 2023 17:06:01 +0100 Subject: [PATCH] [Login] remove trim on password --- .../android/features/login/impl/root/LoginRootPresenter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/login/impl/src/main/kotlin/io/element/android/features/login/impl/root/LoginRootPresenter.kt b/features/login/impl/src/main/kotlin/io/element/android/features/login/impl/root/LoginRootPresenter.kt index 46a42ad24c..c9a75365f1 100644 --- a/features/login/impl/src/main/kotlin/io/element/android/features/login/impl/root/LoginRootPresenter.kt +++ b/features/login/impl/src/main/kotlin/io/element/android/features/login/impl/root/LoginRootPresenter.kt @@ -71,7 +71,7 @@ class LoginRootPresenter @Inject constructor(private val authenticationService: loggedInState.value = LoggedInState.LoggingIn //TODO rework the setHomeserver flow authenticationService.setHomeserver(homeserver) - authenticationService.login(formState.login.trim(), formState.password.trim()) + authenticationService.login(formState.login.trim(), formState.password) .onSuccess { sessionId -> loggedInState.value = LoggedInState.LoggedIn(sessionId) }