password change

jwt_allauth.password_change.serializers module

class jwt_allauth.password_change.serializers.PasswordChangeSerializer(*args, **kwargs)[source]

Bases: Serializer

save()[source]
set_password_form_class

alias of SetPasswordForm

validate(attrs)[source]
validate_old_password(value)[source]

jwt_allauth.password_change.views module

class jwt_allauth.password_change.views.PasswordChangeView(**kwargs)[source]

Bases: GenericAPIView

Calls 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 'rest_framework.permissions.IsAuthenticated'>,)
post(request)[source]
serializer_class

alias of PasswordChangeSerializer

throttle_classes = [<class 'rest_framework.throttling.UserRateThrottle'>]