apqlzm / medihunter

Find Medicover appointments
GNU General Public License v3.0
160 stars 58 forks source link

Invalid login/password causes "no appointments found" #22

Closed kubukoz closed 1 year ago

kubukoz commented 3 years ago

I believe it should be an error.

It looks like the POST request in step 6 of the login process returns a 200 OK HTML page with just an error message somewhere in the middle. The data object is then {}, and login silently proceeds to the end. Then, when you search for appointments with SearchFreeSlotsToBook it'll return a 401/403 (can't remember) and an empty list will be returned from the whole function.

Caused me some pain (especially since you lock your account for 15 minutes every time you input your username/pass wrong 3 times) until I found out I was missing one char from the password in my script, thought it could help someone else (or this could be fixed if someone has the time) - guess it'll involve some soup work.

BTW thanks a lot for this tool :pray: it's already very useful to me.