Commit 50e1c1b2 authored by Célande Adrien's avatar Célande Adrien Committed by Romain Bignon

[bnporc] message for BrowserPasswordExpired

Closes: 6189@zendesk
parent ac1cce79
......@@ -106,7 +106,8 @@ class ConnectionThresholdPage(HTMLPage):
def on_load(self):
if not self.looks_legit(self.browser.password):
# we may not be able to restore the password, so reject it
raise BrowserPasswordExpired()
msg = CleanText('//div[@class="confirmation"]//span[span]')(self.doc)
raise BrowserPasswordExpired(msg)
new_pass = ''.join([str((int(l) + 1) % 10) for l in self.browser.password])
self.logger.warning('Password expired. Renewing it. Temporary password is %s', new_pass)
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