Commit a0c07797 authored by Romain Bignon's avatar Romain Bignon Committed by Romain Bignon

bnporc: add comments

parent fd96048e
......@@ -49,6 +49,9 @@ from import html2text
class ConnectionThresholdPage(HTMLPage):
"""BNP disallows to reuse one of the three last used passwords."""
def make_date(self, yy, m, d):
current =
if yy > current - 2000:
......@@ -105,7 +108,7 @@ class ConnectionThresholdPage(HTMLPage):
raise BrowserPasswordExpired(msg)
new_passwords = []
for i in range(3):
for i in range(self.NOT_REUSABLE_PASSWORDS_COUNT):
new_pass = ''.join([str((int(l) + i + 1) % 10) for l in self.browser.password])
if not self.looks_legit(new_pass):
self.logger.warning('One of rotating password is not legit')
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