mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-25 19:05:56 +03:00
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:
parent
9335242ce1
commit
75d589bedd
3 changed files with 3 additions and 2 deletions
1
changelog.d/7111.misc
Normal file
1
changelog.d/7111.misc
Normal file
|
@ -0,0 +1 @@
|
|||
Add trim to username input on the app side and SDK side when sign-in
|
|
@ -69,7 +69,7 @@ internal class DefaultLoginWizard(
|
|||
)
|
||||
} else {
|
||||
PasswordLoginParams.userIdentifier(
|
||||
user = login,
|
||||
user = login.trim(),
|
||||
password = password,
|
||||
deviceDisplayName = initialDeviceName,
|
||||
deviceId = deviceId
|
||||
|
|
|
@ -684,7 +684,7 @@ class LoginViewModel @AssistedInject constructor(
|
|||
currentJob = viewModelScope.launch {
|
||||
try {
|
||||
safeLoginWizard.login(
|
||||
action.username,
|
||||
action.username.trim(),
|
||||
action.password,
|
||||
action.initialDeviceName
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue