detection of disabled accounts
This commit is contained in:
parent
4ae48fb7c0
commit
902fec0f5b
1 changed files with 4 additions and 2 deletions
|
|
@ -42,8 +42,10 @@ class BredBrowser(DomainBrowser):
|
||||||
def do_login(self, login, password):
|
def do_login(self, login, password):
|
||||||
self.location('/transactionnel/Authentication', data={'identifiant': login, 'password': password})
|
self.location('/transactionnel/Authentication', data={'identifiant': login, 'password': password})
|
||||||
|
|
||||||
if 'erreur-pwd' in self.url:
|
if 'gestion-des-erreurs/erreur-pwd' in self.url:
|
||||||
raise BrowserIncorrectPassword()
|
raise BrowserIncorrectPassword('Bad login/password.')
|
||||||
|
if 'gestion-des-erreurs/opposition' in self.url:
|
||||||
|
raise BrowserIncorrectPassword('Your account is disabled')
|
||||||
|
|
||||||
ACCOUNT_TYPES = {'000': Account.TYPE_CHECKING,
|
ACCOUNT_TYPES = {'000': Account.TYPE_CHECKING,
|
||||||
'999': Account.TYPE_MARKET,
|
'999': Account.TYPE_MARKET,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue