Open redex-ai opened 11 months ago
The changes involve creating a new User model, serializer, and views to handle user registration. URL patterns will be updated to include the registration endpoint. Settings and dependencies will be adjusted to support authentication features.
Add a new User model with fields for username, email, password, and any other relevant user information. Include methods for setting and checking passwords securely.
Create a UserSerializer to handle serialization and deserialization of User model data.
Add views for user registration, which will use the UserSerializer to create new User instances. Include necessary validation and error handling.
Define URL patterns for the new registration views to make them accessible via the API.
Ensure that the authentication system is configured properly, including any necessary settings for token generation and password hashing.
Add any new dependencies required for user authentication, such as 'bcrypt' for password hashing or 'djangorestframework-simplejwt' for token management.
PULL REQUEST : https://github.com/redex-ai/django-notes-app/pull/20
Add support where user should be able to register their account.