Whoops, only revoke the current user's Micropub tokens for a client, not every single token for that client

This commit is contained in:
Danielle McLean 2018-06-28 08:38:55 +10:00
parent 446029ce84
commit 35ced9a451
Signed by: 00dani
GPG key ID: 8EB789DDF3ABD240

View file

@ -2,10 +2,8 @@ from django.http import HttpResponse
from django.contrib.auth.mixins import LoginRequiredMixin
from django.views import View
from ...models import Token
class TokensRevokeView(LoginRequiredMixin, View):
def delete(self, request, client_id: str):
return HttpResponse(status=204)