The new woob repository is here: This gitlab will be removed soon.

Commit e438b112 authored by Florent Viard's avatar Florent Viard Committed by Vincent A

[creditmutuel] gracefully handle the case of using an otp code when otp is not expected anymore

parent 751ce806
......@@ -343,6 +343,8 @@ def check_otp_blocked(self):
raise BrowserUnavailable(error_msg)
def handle_sms(self):
if not self.otp_data or 'final_url_params' not in self.otp_data:
raise BrowserIncorrectPassword("Le code de confirmation envoyé par SMS n'est plus utilisable")
self.otp_data['final_url_params']['otp_password'] = self.code
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