mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2025-01-31 20:52:46 +01:00
Allow special login format in login form (#1258)
This commit is contained in:
parent
f5b46707ff
commit
a448092008
@ -162,7 +162,7 @@ class LoginFormPresenter @Inject constructor(
|
|||||||
view?.setErrorEmailRequired()
|
view?.setErrorEmailRequired()
|
||||||
isCorrect = false
|
isCorrect = false
|
||||||
}
|
}
|
||||||
if ("@" in login && "login" !in host && "email" !in host) {
|
if ("@" in login && "||" !in login && "login" !in host && "email" !in host) {
|
||||||
val emailHost = login.substringAfter("@")
|
val emailHost = login.substringAfter("@")
|
||||||
val emailDomain = URL(host).host
|
val emailDomain = URL(host).host
|
||||||
if (emailHost != emailDomain) {
|
if (emailHost != emailDomain) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user