Fix case sensitive domain checker (#1894)

This commit is contained in:
Rafał Borcz 2022-06-18 11:54:08 +02:00 committed by GitHub
parent cd59166efb
commit bfab265ccf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ ext {
}
dependencies {
implementation "io.github.wulkanowy:sdk:1.6.4"
implementation "io.github.wulkanowy:sdk:16811fbe90"
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'

View File

@ -172,7 +172,7 @@ class LoginFormPresenter @Inject constructor(
if ("@" in login && "||" !in login && "login" !in host && "email" !in host) {
val emailHost = login.substringAfter("@")
val emailDomain = URL(host).host
if (emailHost != emailDomain) {
if (!emailHost.equals(emailDomain, true)) {
view?.setErrorEmailInvalid(domain = emailDomain)
isCorrect = false
}