Commit 00db50d3 authored by Christophe Francois's avatar Christophe Francois Committed by Vincent A

[yomoni] Fix login

The password isn't encoded in base 64 anymore. All connections have been
set to wrongpass because we sent the password after encoding it.
parent 3105fe4f
......@@ -21,7 +21,6 @@
from __future__ import unicode_literals
from base64 import b64encode
from functools import wraps
import json
import re
......@@ -80,7 +79,7 @@ class YomoniBrowser(APIBrowser):
data = {
'username': self.username,
'password': b64encode(self.password.encode('utf8')).decode('ascii').strip(),
'password': self.password,
}
try:
response = self.open('auth/login', data=data, headers=self.login_headers)
......
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