You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VerifyEmailView should override http_method_names instead of allowed_methods, in order to restrict the get method of its parent ConfirmationEmailView. As it stands, overriding default_methods has no effect and GET is wrongly allowed, calling ConfirmationEmailView.get() from allauth.
VerifyEmailView should override http_method_names instead of allowed_methods, in order to restrict the get method of its parent ConfirmationEmailView. As it stands, overriding default_methods has no effect and GET is wrongly allowed, calling ConfirmationEmailView.get() from allauth.
django-rest-auth/rest_auth/registration/views.py
Line 80 in 42d039b
Background:
APIView from rest_framework defines allowed_methods as
which references django's _allowed_methods():
However, APIView.dispatch() actually checks http_method_names:
Taken from Djang 1.11.6, django-rest-auth 0.9.2, djangorestframework 3.7.0
The text was updated successfully, but these errors were encountered: