doorkeeper requires JSON data, not HTTP parameters

This commit is contained in:
Francis Begyn 2019-05-28 01:51:08 +02:00
parent 6bb2c6e2e5
commit 7ec2c9d53c
No known key found for this signature in database
GPG key ID: 6BDE1879046BAF08

View file

@ -123,7 +123,7 @@ def revoke(admin_username):
def slotmachien_request(username, command):
r = requests.post(config.slotmachien_url, data={
r = requests.post(config.slotmachien_url, json={
'username': username, 'token': config.slotmachien_token, 'text': command})
return r.text