The new woob repository is here: This gitlab will be removed soon.

Commit 1edd3628 authored by Stephane Sobucki's avatar Stephane Sobucki Committed by Vincent A

[carrefourbanque] Fix login

The first time we login, we get a cookie 'SSESSION...'.
If this cookie is present, when we try to go to the LoginPage we will be
redirected to the HomePage.

For the next session, because locate_browser() doesn't do anything, do_login() will be called
but if the cookie 'SSESSION...' is valid we'll be redirected to the HomePage.

This results in calling LoginPage's enter_login() method, even though
we're on the HomePage, and it causes an AttributeError.

To solve this I removed locate_browser() overriding.
parent 485c6b49
......@@ -68,9 +68,6 @@ def __init__(self, config, *args, **kwargs):
kwargs['password'] = self.config['password'].get()
super(CarrefourBanqueBrowser, self).__init__(*args, **kwargs)
def locate_browser(self, state):
def do_login(self):
Attempt to log in.
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