From b148d2c6a99fdf339e328e0365a418bac5805d3a Mon Sep 17 00:00:00 2001 From: Maxime Gasselin Date: Wed, 19 Aug 2020 11:38:02 +0200 Subject: [PATCH] [banquepopulaire] Allows Non numeric password for new login We still have some connexions without VK. Consequently the numeric check is done when the vk is identified. --- modules/banquepopulaire/browser.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/banquepopulaire/browser.py b/modules/banquepopulaire/browser.py index 4126801693..4348bbb31d 100644 --- a/modules/banquepopulaire/browser.py +++ b/modules/banquepopulaire/browser.py @@ -264,10 +264,8 @@ def do_login(self): return if self.new_login.is_here(): - if not self.password.isnumeric(): - # Vk from new login only accepts numeric characters - raise BrowserIncorrectPassword('Le mot de passe doit être composé de chiffres uniquement') return self.do_new_login() + return self.do_old_login() def do_old_login(self): @@ -396,6 +394,9 @@ def do_new_login(self): # no VK, password to submit code = self.password else: + if not self.password.isnumeric(): + raise BrowserIncorrectPassword('Le mot de passe doit être composé de chiffres uniquement') + vk_images_url = vk_info['virtualKeyboard']['externalRestMediaApiUrl'] self.location(vk_images_url) -- GitLab