...
 
Commits (3)
......@@ -18,6 +18,7 @@
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from __future__ import unicode_literals
import ssl
from weboob.browser import LoginBrowser, URL, need_login
from weboob.exceptions import BrowserIncorrectPassword, BrowserPasswordExpired
......@@ -66,6 +67,14 @@ class CreditDuNordBrowser(LoginBrowser):
else:
self.do_login()
def prepare_request(self, req):
preq = super(CreditDuNordBrowser, self).prepare_request(req)
conn = self.session.adapters['https://'].get_connection(preq.url)
conn.ssl_version = ssl.PROTOCOL_TLSv1_2
return preq
def do_login(self):
self.login.go().login(self.username, self.password)
if self.accounts.is_here():
......
......@@ -55,9 +55,9 @@ class CreditDuNordModule(Module, CapBankWealth, CapProfile):
BROWSER = CreditDuNordBrowser
def create_default_browser(self):
return self.create_browser(self.config['website'].get(),
self.config['login'].get(),
return self.create_browser(self.config['login'].get(),
self.config['password'].get(),
'https://' + self.config['website'].get(),
weboob=self.weboob)
def iter_accounts(self):
......