Skip to content

Add reset password functionality #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open

Conversation

Hordunlarmy
Copy link
Member

No description provided.

butterman28
butterman28 previously approved these changes Jul 20, 2024
def validate_new_password(self, value):
"""This is for validating new password"""

user = self.context["request"].user
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I doubt this is possible, since the user isn't authenticated

permission_classes = (permissions.AllowAny,)

def put(self, request, *args, **kwargs):
user = self.request.user
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I doubt this will work too, as the user is unauthenticated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants