[sankaku] send login info as formdata

Previously they were erroneously send as URL parameters.
pull/133/head
Mike Fährmann 6 years ago
parent fa64c38d5b
commit 99137f1bee
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -130,14 +130,14 @@ class SankakuExtractor(SharedConfigExtractor):
"""Actual login implementation"""
username = usertuple[0]
self.log.info("Logging in as %s", username)
params = {
data = {
"url": "",
"user[name]": username,
"user[password]": password,
"commit": "Login",
}
response = self.request(self.root + "/user/authenticate",
method="POST", params=params)
method="POST", data=data)
if not response.history or response.url != self.root + "/user/home":
raise exception.AuthenticationError()
cookies = response.history[0].cookies

Loading…
Cancel
Save