mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Actually set the revoked flag
This commit is contained in:
@@ -105,7 +105,7 @@ class RevokeKeyView(APIView):
|
||||
|
||||
def post(self, request, format=None):
|
||||
device = request.auth
|
||||
device.api_token = None
|
||||
device.revoked = True
|
||||
device.save()
|
||||
device.log_action('pretix.device.revoked', auth=device)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user