TeamHG-Memex / autologin

A project to attempt to automatically login to a website given a single seed
Apache License 2.0
123 stars 44 forks source link

"pending" in HTTP API if credentials are created in admin without login url #31

Open lopuhin opened 7 years ago

lopuhin commented 7 years ago

Steps to reproduce:

  1. Create credentials in the admin interface, filling domain, url, username and password, but not login_url
  2. Request login via HTTP API
  3. Observe that status is "pending" and nor login nor form crawler are started

This is the relevant bit of code: https://github.com/TeamHG-Memex/autologin/blob/18694169e4af908b97167d57204ebb956041d1ed/autologin/http_api.py#L76 - we should know if we have already started a crawler to search for the login url.