I'm trying to authenticate to Misago from a Python app using the "requests" Python module. However, I get this error:
<p>This is usually caused by your browser not accepting or using outdated cookies.</p>
<p>Check your browser configuration and try again.</p>
This is the code I'm using:
import requests
FORUM_URL = 'https://misago-project.org/'
AUTH_API_URL = '{}/api/auth/'.format(FORUM_URL)
username = 'username_goes_here'
password = 'password_goes_here'
r = requests.post(AUTH_API_URL, data={'username': username, 'password': password})
print(r.text)
What am I doing wrong?