Commit 13bc1f0a authored by Baptiste Delpey's avatar Baptiste Delpey Committed by Romain Bignon
Browse files

[axabanque] handle another actionNeeded

Closes: 425587@redmine
parent 44059bc5
......@@ -24,7 +24,7 @@
from weboob.capabilities.base import NotAvailable
from weboob.exceptions import BrowserIncorrectPassword, ActionNeeded
from .pages.login import KeyboardPage, LoginPage, ChangepasswordPage, PredisconnectedPage
from .pages.login import KeyboardPage, LoginPage, ChangepasswordPage, PredisconnectedPage, DeniedPage
from import (
AccountsPage as BankAccountsPage, CBTransactionsPage, TransactionsPage,
UnavailablePage, IbanPage, LifeInsuranceIframe, BoursePage,
......@@ -40,6 +40,8 @@ class AXABrowser(LoginBrowser):
predisconnected = URL('',
'', PredisconnectedPage)
denied = URL('', DeniedPage)
def do_login(self):
# due to the website change, login changed too, this is for don't try to login with the wrong login
if self.username.isdigit() and len(self.username) > 7:
......@@ -103,3 +103,8 @@ def on_load(self):
class PredisconnectedPage(HTMLPage):
def on_load(self):
raise BrowserBanned()
class DeniedPage(HTMLPage):
def on_load(self):
raise ActionNeeded()
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