coova / coova-chilli

CoovaChilli is an open-source software access controller for captive portal hotspots.
Other
518 stars 260 forks source link

Question Trying to login from a ionic app #218

Closed greemlin closed 8 years ago

greemlin commented 8 years ago

Hello, I hope I am in the right spot for my question. I am trying for a month now to successfully login to a chilli hotspot using an ionic application (I need to make a mobile app which will login t chilli so the client can surf the internet). I am using the Chilli library, i ve set the port and url of the chilliController in my script (see below). I can logoff sucessfully (when I have logged in throught the web page), but when I am trying to login via javascript chillicontroller.logon(username, password) I get an error: challenge not found. Please help!!! ... I thought the host will handle the username and password so it is hashed properly...

what I did is: chilliController.host = "172.50.70.1"; chilliController.port = "3990"; chilliController.logon( username , password ) ;

as described here: http://blog.trifork.com/2013/01/15/building-a-captive-portal-controlling-access-to-the-internet-from-your-network/

Any help or push to the right direction would be really appreciated..

muratbeser commented 8 years ago

you could use https://github.com/mpangrazzi/pepper instead of default.

greemlin commented 8 years ago

Thank you very much for your reply

Sincerely, Nick Kap