Skip to content
Commit 39fcaf86 authored by Stéphane Sobucki's avatar Stéphane Sobucki Committed by hydrargyrum
Browse files

[hsbc] Sturdy handle_otp by adding otp_form to states

Because relogin or ActionNeeded can happen during the handle_otp, solely
relying on the presence of the otp config value may cause some issue. We
might already have validated the otp once but we will run handle_otp
once again.

Also using locate_browser() when handling otp can lead to weird
behaviour. In our case it leads to unavailable page.

To fix this we don't use locate_browser() anymore, instead we store the
otp_form_data and otp_validation_url to use them in handle_otp. We also
use their presence in states to be sure that it's the first time we call
handle_otp.

Closes: 337@sibi
parent 7dece3e3
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