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 { } else {
PasswordLoginParams.userIdentifier( PasswordLoginParams.userIdentifier(
user = login, user = login.trim(),
password = password, password = password,
deviceDisplayName = initialDeviceName, deviceDisplayName = initialDeviceName,
deviceId = deviceId deviceId = deviceId

View File

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