forked from github/wulkanowy-mirror
Fix case sensitive domain checker (#1894)
This commit is contained in:
parent
cd59166efb
commit
bfab265ccf
@ -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'
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user