Prepend EDUNET\ to umt.tarnow.pl login

This commit is contained in:
Mikołaj Pich 2020-09-27 17:44:00 +02:00
parent 3ce92d979e
commit 9364c2e6fc

View file

@ -67,8 +67,10 @@ class LoginHelper(
AUTO -> throw ScrapperException("You must first specify Api.loginType before logging in")
STANDARD -> sendStandard(it, password)
ADFS -> {
if (host == "umt.tarnow.pl") sendADFSMS(email, password) // legacy
else sendADFS(it, password)
if (host == "umt.tarnow.pl") {
val login = if ("@" in email) email else "EDUNET\\$email"
sendADFSMS(login, password)
} else sendADFS(it, password)
}
ADFSLight, ADFSLightScoped, ADFSLightCufs -> sendADFSLightGeneric(it, password, loginType)
ADFSCards -> sendADFSCards(it, password)