Commit e3b7330d authored by Jerome Berthier's avatar Jerome Berthier Committed by Romain Bignon

[banquepopulaire] Fix error 400 during login

It seems this field 'id' was never verified by the server.
Now when credentials are invalid it is checked and server
returns 400 if it is invalid.

Behavior seen on regions Occitanie, PACA and Alsace
parent 27e77a0b
......@@ -396,7 +396,7 @@ class Login2Page(LoginPage):
payload = {
'validate': {
form_id[0]: [{
'id': self.form_id[1],
'id': form_id[1],
'password': password,
'type': 'PASSWORD',
......@@ -404,7 +404,6 @@ class Login2Page(LoginPage):
r =, json=payload)
doc = r.json()
self.logger.debug('doc = %s', doc)
if 'phase' in doc and doc['phase']['state'] == 'TERMS_OF_USE':
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