forked from cas/civicrmapi4
Manually specify login URL
This commit is contained in:
parent
108d10313f
commit
e6fcd1e096
@ -82,7 +82,7 @@ class APIv4:
|
|||||||
"pass": password,
|
"pass": password,
|
||||||
"form_id": "user_login_block",
|
"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):
|
if (not res.ok):
|
||||||
log.error("Login failed. Code: {}. Result: {}".format(res.status_code, res.text))
|
log.error("Login failed. Code: {}. Result: {}".format(res.status_code, res.text))
|
||||||
# we should raise an error here.
|
# we should raise an error here.
|
||||||
|
Loading…
Reference in New Issue
Block a user