Commit 69c567e6 authored by Vincent Ardisson's avatar Vincent Ardisson Committed by Vincent A

[caissedepargne] don't logout during transfers, it breaks 'em

AuthenticationMethodPage was missing "logged".
Since the page is also used at login, try to distinguish cases.
parent b230543a
......@@ -119,6 +119,21 @@ class AuthorizePage(HTMLPage):
class AuthenticationMethodPage(JsonPage):
def logged(self):
context, = list(self.doc.get('context', {}))
except ValueError:
self.logger.warning("oops, we don't know if we're at login or during other authentication")
return False
return (
# can be VIR_SEPA_FR or VIR_SEPA
# adding a recipient
or context == 'AJOUT_CPT'
def get_validation_id(self):
return Dict('id')(self.doc)
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