Add trim to username input on sign-in

Add trim to username input on the app side and SDK side
Signed-off-by: ByeongsuPark <byeongsu@soongsil.ac.kr>
This commit is contained in:
ByeongsuPark 2022-10-22 00:15:44 +09:00
parent 9335242ce1
commit 75d589bedd
3 changed files with 3 additions and 2 deletions

1
changelog.d/7111.misc Normal file
View file

@ -0,0 +1 @@
Add trim to username input on the app side and SDK side when sign-in

View file

@ -69,7 +69,7 @@ internal class DefaultLoginWizard(
)
} else {
PasswordLoginParams.userIdentifier(
user = login,
user = login.trim(),
password = password,
deviceDisplayName = initialDeviceName,
deviceId = deviceId

View file

@ -684,7 +684,7 @@ class LoginViewModel @AssistedInject constructor(
currentJob = viewModelScope.launch {
try {
safeLoginWizard.login(
action.username,
action.username.trim(),
action.password,
action.initialDeviceName
)