mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2024-11-28 04:43:33 -06:00
[Login] Fix incorrect case mode validation. (#115)
This commit is contained in:
parent
3f11e75985
commit
86f5811bda
@ -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(), "")
|
||||||
|
Loading…
Reference in New Issue
Block a user