diff --git a/src/main/kotlin/cu/suitetecsa/sdk/nauta/framework/NautaApi.kt b/src/main/kotlin/cu/suitetecsa/sdk/nauta/framework/NautaApi.kt index 8f1be44..94ce77f 100755 --- a/src/main/kotlin/cu/suitetecsa/sdk/nauta/framework/NautaApi.kt +++ b/src/main/kotlin/cu/suitetecsa/sdk/nauta/framework/NautaApi.kt @@ -75,7 +75,7 @@ class NautaApi( when (val loginResult = connectPortalCommunicator.getLoginPage(action, data)) { is ResultType.Error -> throw loginResult.throwable is ResultType.Success -> { - val (loginAction, loginData) = connectPortalScraper.parseActionForm(loginResult.result ?: "") + val (loginAction, loginData) = connectPortalScraper.parseLoginForm(loginResult.result ?: "") wlanUserIp = loginData["wlanuserip"] ?: "" csrfHw = loginData["CSRFHW"] ?: "" actionLogin = loginAction