Commit 3e992960 authored by ntome's avatar ntome Committed by Romain Bignon

[caissedepargne] skip cenet if it's not alone and nuser isn't set

If the user has both cenet and non-cenet and they didn't fill the nuser,
skip cenet because it can't be used without.
parent 4de0b38a
......@@ -246,6 +246,11 @@ class CaisseEpargne(LoginBrowser, StatesMixin):
self.multi_type = True
if self.inexttype < len(data['account']):
if data['account'][self.inexttype] == 'EU' and not self.nuser:
# when EU is present and not alone, it tends to come first
# if nuser is unset though, user probably doesn't want 'EU'
self.inexttype += 1
self.typeAccount = data['account'][self.inexttype]
else:
assert False, 'should have logged in with at least one connection type'
......
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