[Login] Fix incorrect case mode validation. (#115)

This commit is contained in:
Antoni Czaplicki 2021-10-31 14:24:20 +01:00 committed by GitHub
parent 3f11e75985
commit 86f5811bda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -262,7 +262,7 @@ class LoginFormFragment : Fragment(), CoroutineScope {
if (credential.caseMode == FormField.CaseMode.UPPER_CASE) if (credential.caseMode == FormField.CaseMode.UPPER_CASE)
text = text.uppercase() text = text.uppercase()
if (credential.caseMode == FormField.CaseMode.LOWER_CASE) if (credential.caseMode == FormField.CaseMode.LOWER_CASE)
text = text.uppercase() text = text.lowercase()
credential.stripTextRegex?.let { credential.stripTextRegex?.let {
text = text.replace(it.toRegex(), "") text = text.replace(it.toRegex(), "")