password reset¶
jwt_allauth.password_reset.serializers module¶
jwt_allauth.password_reset.views module¶
- class jwt_allauth.password_reset.views.DefaultPasswordResetView(**kwargs)[source]¶
Bases:
GenericAPIViewDefault view for password reset form.
- permission_classes = (<class 'rest_framework.permissions.AllowAny'>,)¶
- template_name = 'password/reset.html'¶
- class jwt_allauth.password_reset.views.DefaultSetPasswordView(**kwargs)[source]¶
Bases:
GenericAPIViewDefault view for admin-managed registration password set form.
This renders a minimal HTML UI that posts to the API-based SetPasswordView (rest_set_password) and relies on the SET_PASSWORD_COOKIE for authorization.
- permission_classes = (<class 'rest_framework.permissions.AllowAny'>,)¶
- template_name = 'password/set.html'¶
- class jwt_allauth.password_reset.views.PasswordResetConfirmView(**kwargs)[source]¶
Bases:
GenericAPIView- form_url = 'password_reset/'¶
- get(request, *args, **kwargs)¶
- class jwt_allauth.password_reset.views.PasswordResetView(**kwargs)[source]¶
Bases:
GenericAPIViewCalls Django Auth PasswordResetForm save method.
Accepts the following POST parameters: email Returns the success/fail message.
- permission_classes = (<class 'rest_framework.permissions.AllowAny'>,)¶
- post(request, *args, **kwargs)¶
- serializer_class¶
alias of
PasswordResetSerializer
- throttle_classes = [<class 'rest_framework.throttling.AnonRateThrottle'>]¶
- class jwt_allauth.password_reset.views.ResetPasswordView(**kwargs)[source]¶
Bases:
GenericAPIViewCalls Django Auth SetPasswordForm save method.
Accepts the following POST parameters: new_password1, new_password2 Returns the success/fail message.
- dispatch(*args, **kwargs)[source]¶
.dispatch() is pretty much the same as Django’s regular dispatch, but with extra hooks for startup, finalize, and exception handling.
- permission_classes = (<class 'jwt_allauth.password_reset.permissions.ResetPasswordPermission'>,)¶
- serializer_class¶
alias of
SetPasswordSerializer
- throttle_classes = [<class 'rest_framework.throttling.UserRateThrottle'>]¶
- class jwt_allauth.password_reset.views.SetPasswordView(**kwargs)[source]¶
Bases:
GenericAPIViewSet password for admin-managed registration. Accepts: new_password1, new_password2 Returns: tokens and success message.
- dispatch(*args, **kwargs)[source]¶
.dispatch() is pretty much the same as Django’s regular dispatch, but with extra hooks for startup, finalize, and exception handling.
- permission_classes = (<class 'jwt_allauth.password_reset.permissions.SetPasswordPermission'>,)¶
- serializer_class¶
alias of
SetPasswordSerializer
- throttle_classes = [<class 'rest_framework.throttling.UserRateThrottle'>]¶