Commit 80cc1356 authored by Vincent Ardisson's avatar Vincent Ardisson Committed by Vincent A

bforbank and ing: use new ValueDate

ValueDate now returns a real "date" object, not a mere string
parent 5994483d
......@@ -96,7 +96,7 @@ class LoginPage(HTMLPage):
code = vk.get_string_code(password)
form = self.get_form()
form['j_username'] = username
form['birthDate'] = birthdate
form['birthDate'] = birthdate.strftime('%d/%m/%Y')
form['indexes'] = code
form.submit()
......
......@@ -194,7 +194,6 @@ class IngAPIBrowser(LoginBrowser, StatesMixin):
raise Exception("%r code isn't handled yet: %s" % (error['code'], error['message']))
def do_login(self):
assert self.birthday.isdigit()
if not self.password.isdigit():
raise BrowserIncorrectPassword()
......@@ -203,7 +202,7 @@ class IngAPIBrowser(LoginBrowser, StatesMixin):
self.context.go()
data = OrderedDict([
('birthDate', self.birthday),
('birthDate', self.birthday.strftime('%d%m%Y')),
('cif', self.username),
])
try:
......
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