Skip to content

Commit 630cf84

Browse files
committed
Use one step deletion to revoke the token
1 parent 4d65213 commit 630cf84

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

readthedocs/profiles/views.py

+2
Original file line numberDiff line numberDiff line change
@@ -251,5 +251,7 @@ class TokenDeleteView(TokenMixin, DeleteView):
251251

252252
"""View to delete/revoke the current Token of the logged in User."""
253253

254+
http_method_names = ['post']
255+
254256
def get_object(self, queryset=None):
255257
return self.request.user.auth_token

0 commit comments

Comments
 (0)