Skip to content
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

FE - Change user data feature #37

Open
janmrakava opened this issue Nov 10, 2024 · 1 comment
Open

FE - Change user data feature #37

janmrakava opened this issue Nov 10, 2024 · 1 comment
Assignees
Labels

Comments

@janmrakava
Copy link
Collaborator

When the BE is done, it's time to develop this feature on FE side. So right now is waiting for BE. Don't forget add some "toaster" notification when user succesfully change data.

@prikryla
Copy link
Owner

@janmrakava Route for edit user is ready to serve and test.

Name of the route - update_user
URL for testing - 127.0.0.1:8000/api/auth/update-user/
There should be either 'username' nor 'email' in requested data from FE. Change of the password will have separate route due some advanced reasons (handling the security etc)

Return response

    return JsonResponse({
        "message": "User profile updated successfully",
        "username": user.username,
        "email": user.email
    }, status=200)

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

No branches or pull requests

2 participants