Commit c70f0ac9 authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Romain Bignon

[cragr] Repair login for Paris website

The login was broken because they "reinforced" the security at login:
now to get the keypad we must pass the Referer in the headers as well as
the login as data and POST the request.

Closes: 10140@zendesk
parent ff7d94cd
......@@ -195,7 +195,10 @@ class CragrAPI(LoginBrowser):
# Once the security check is passed, we are logged in.
def get_security_form(self):
headers = {'Referer': self.BASEURL + 'particulier/acceder-a-mes-comptes.html'}
data = {'user_id': self.username}
self.keypad.go(headers=headers, data=data)
keypad_password =[:6])
keypad_id =
assert keypad_password, 'Could not obtain keypad password'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment