From 1c03109450ab993e34db98d92225296f85fce464 Mon Sep 17 00:00:00 2001 From: Damien Mat Date: Mon, 8 Feb 2021 11:06:25 +0100 Subject: [PATCH] [bp] Handle new 2FA message to trigger it (2) Previous commit revealed new 2FA messages. that where silenced by an ActionNeed. Here it is a Certicode Plus auth method that actually needed to be triggered. --- modules/bp/pages/login.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/bp/pages/login.py b/modules/bp/pages/login.py index 2ffb136b80..5c296a0dab 100644 --- a/modules/bp/pages/login.py +++ b/modules/bp/pages/login.py @@ -161,7 +161,11 @@ def on_load(self): def get_auth_method(self): status_message = CleanText('//div[@class="textFCK"]')(self.doc) - if 'Une authentification forte via Certicode Plus vous' in status_message: + if re.search( + 'Une authentification forte via Certicode Plus vous' + + '|vous rendre sur l’application mobile La Banque Postale', + status_message + ): return 'cer+' elif re.search( 'authentification forte via Certicode vous' -- GitLab