[bnpcards] Suggestion: password should be renewed automatically
On the BNP corporate cards website the password is required to be changed quite often. This is quite annoying to have to manually go to the website to change the password and update the backend configuration.
The good thing is that the password renewal policy is quite flexible: it accepts the n-2 th same password. Thus, when the password expires, it could be automatically changed to a temporary value, then restored back to the original one.
What do you think?
Indeed, I saw you did that in your
I'm thinking, instead of renewing the password directly in the module's
iter_accountsor alike method, there could be a generalized mechanism. There's a
BrowserPasswordExpiredexception and a
CapAccountto renew the password, and simply raise
BrowserPasswordExpiredwhen expiration is encountered. Then boobank would handle
Mentioned in merge request !234