fix: trim whitespaces at the end (or start) of email/username (#683)

This commit is contained in:
Stɑrry Shivɑm 2024-04-15 12:52:24 +05:30 committed by GitHub
parent 11f7f3824f
commit 1cda702f05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,7 +50,7 @@ class LoginViewModel(
}
private fun setUsername(value: String) {
updateState { it.copy(username = value) }
updateState { it.copy(username = value.trim()) }
}
private fun setPassword(value: String) {