Commit 7a75a21c authored by Jerome Berthier's avatar Jerome Berthier Committed by Romain Bignon

[creditdunord] Fix wrong password not detected

parent 4a705c12
......@@ -81,6 +81,9 @@ class CreditDuNordBrowser(LoginBrowser):
if not self.logged:
raise BrowserIncorrectPassword()
if self.page.doc.xpath('//head[title="Authentification"]/script[contains(text(), "_pageLabel=reinitialisation_mot_de_passe")]'):
raise BrowserPasswordExpired()
def _iter_accounts(self):
self.loans.go(account_type=self.account_type, loans_page_label=self.loans_page_label)
for a in self.page.get_list():
......
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