mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-11 01:26:22 +01:00
rename revoke to delete to be clearer
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
from glob import escape
|
||||
import logging
|
||||
from symbol import except_clause
|
||||
|
||||
from django.conf import settings
|
||||
from django.contrib import messages
|
||||
@@ -73,7 +71,7 @@ def token_management(request):
|
||||
return render(request, 'authentication/tokens.html', context)
|
||||
|
||||
@login_required
|
||||
def token_revoke(request, token_id=None):
|
||||
def token_delete(request, token_id=None):
|
||||
try:
|
||||
token = Token.objects.get(id=token_id)
|
||||
if request.user == token.user:
|
||||
|
||||
Reference in New Issue
Block a user