From 7a75a21c9880987e065738eb3d42b52fc2431b4b Mon Sep 17 00:00:00 2001 From: Jerome Berthier Date: Mon, 1 Apr 2019 14:49:55 +0200 Subject: [PATCH] [creditdunord] Fix wrong password not detected --- modules/creditdunord/browser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/creditdunord/browser.py b/modules/creditdunord/browser.py index 092327b3a3..73e2f520fb 100644 --- a/modules/creditdunord/browser.py +++ b/modules/creditdunord/browser.py @@ -81,6 +81,9 @@ def do_login(self): 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(): -- GitLab