diff --git a/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/login/LoginHelper.kt b/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/login/LoginHelper.kt index 24c0e3cc..352e87e8 100644 --- a/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/login/LoginHelper.kt +++ b/sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/login/LoginHelper.kt @@ -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)