Commit af6202d0 authored by Florian Duguet's avatar Florian Duguet Committed by Vincent A

[bouygues] add lastname on login

bouygues add this mandatory field on some ip address
parent ff728de3
......@@ -59,7 +59,7 @@ class BouyguesBrowser(LoginBrowser):
def do_login(self):
self.login_page.go(), self.password), self.password, self.lastname)
# q is timestamp millisecond
self.app_config.go(params={'q': int(time()*1000)})
......@@ -28,13 +28,20 @@ from weboob.browser.pages import HTMLPage, JsonPage, LoggedPage, RawPage
from weboob.capabilities import NotAvailable
from weboob.capabilities.bill import Subscription, Bill
from weboob.browser.filters.standard import Date, CleanDecimal, Env, Format
from weboob.exceptions import BrowserIncorrectPassword
class LoginPage(HTMLPage):
def login(self, username, password):
def login(self, username, password, lastname):
form = self.get_form()
form['username'] = username
form['password'] = password
if 'lastname' in form:
if not lastname:
raise BrowserIncorrectPassword('Veuillez renseigner votre nom de famille.')
form['lastname'] = lastname
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