Manually specify login URL

This commit is contained in:
3wc 2023-03-06 13:33:28 -05:00
parent 108d10313f
commit e6fcd1e096

View File

@ -82,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.