Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
e6fcd1e096 | |||
108d10313f | |||
999266689e |
@ -73,6 +73,7 @@ class APIv4:
|
||||
None
|
||||
"""
|
||||
self.session = requests.Session()
|
||||
self.session.verify = False
|
||||
|
||||
# Perform login post
|
||||
self.session.cookies.update({"has_js": "1"})
|
||||
@ -81,7 +82,7 @@ class APIv4:
|
||||
"pass": password,
|
||||
"form_id": "user_login_block",
|
||||
}
|
||||
res = self.session.post(self.base_url, data=postdata)
|
||||
res = self.session.post("{0}/user".format(self.base_url), data=postdata)
|
||||
if (not res.ok):
|
||||
log.error("Login failed. Code: {}. Result: {}".format(res.status_code, res.text))
|
||||
# we should raise an error here.
|
||||
|
Loading…
Reference in New Issue
Block a user