1
0

Allow special login format in login form (#1258)

This commit is contained in:
Mikołaj Pich
2021-03-28 19:46:56 +02:00
committed by GitHub
parent f5b46707ff
commit a448092008

View File

@ -162,7 +162,7 @@ class LoginFormPresenter @Inject constructor(
view?.setErrorEmailRequired()
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 emailDomain = URL(host).host
if (emailHost != emailDomain) {