Commit 9d24974a authored by Maxime Gasselin's avatar Maxime Gasselin Committed by Vincent A

[cmb/bpe/arkeabanqueprivee] Adapt module for 2fa

parent 7469bfc3
......@@ -21,7 +21,7 @@
from weboob.tools.backend import AbstractModule, BackendConfig
from weboob.capabilities.bank import CapBankTransfer
from weboob.capabilities.contact import CapContact
from weboob.tools.value import Value, ValueBackendPassword
from weboob.tools.value import Value, ValueBackendPassword, ValueTransient
from .par.browser import CmbParBrowser
from .pro.browser import CmbProBrowser
......@@ -42,5 +42,6 @@ class CmbModule(AbstractModule, CapBankTransfer, CapContact):
CONFIG = BackendConfig(ValueBackendPassword('login', label='Identifiant', masked=False),
ValueBackendPassword('password', label='Mot de passe'),
ValueTransient('code'),
Value('website', label='Type de compte', default='par',
choices={'par': 'Particuliers', 'pro': 'Professionnels'}))
......@@ -27,6 +27,7 @@ class CmbParBrowser(AbstractBrowser):
name = 'cmb'
arkea = '01'
arkea_si = '001'
arkea_client_id = 'ARCM6W0q6zHX31vvdVczlWRtGjSGbkPv'
original_site = 'https://mon.cmb.fr'
......@@ -26,6 +26,6 @@ class CmbProBrowser(AbstractBrowser):
arkea = '01'
def __init__(self, website, *args, **kwargs):
super(CmbProBrowser, self).__init__(website, *args, **kwargs)
def __init__(self, website, config, *args, **kwargs):
super(CmbProBrowser, self).__init__(website, config, *args, **kwargs)
self.client_id = 'IVhzJ7zf3GiGvslYOuLGgvRvYXFtn2wR'
......@@ -56,7 +56,7 @@ class CmsoProBrowser(LoginBrowser):
arkea = '03'
def __init__(self, website, *args, **kwargs):
def __init__(self, website, config, *args, **kwargs):
super(CmsoProBrowser, self).__init__(*args, **kwargs)
self.BASEURL = "https://www.%s" % website
......
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