-
Notifications
You must be signed in to change notification settings - Fork 27
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
Main #91
base: main
Are you sure you want to change the base?
Main #91
Conversation
for more information, see https://pre-commit.ci
Hi @snehas-05 , really appreciate your efforts but to my utter dismay we don't need Django for this as this project already has FastAPI for the backend and Flask for the frontend. So this PR won't be accepted. Please consult a mentor or project admin before moving on with your task else your precious time and efforts may get wasted |
This is so heart wrenching as I had really put on efforts for this implementation. |
Hi @snehas-05, |
for more information, see https://pre-commit.ci
That could be easily integrated with our existing code without many changes that could mess up the architecture. If are willing to do that we'll be happy to guide you |
Hey yes for sure I will try my best. You can assign me the task |
Already assigned in Issue #87 |
for more information, see https://pre-commit.ci
Hello @devansh-shah-11 @Devasy23 |
Hi @snehas-05 - no, this pr will work. |
I have implemented the User Authentication and Role Management feature in the project. This includes secure user registration, login functionality, and role-based access control. Users can now be assigned different roles (e.g., admin, regular user), and the functionality of certain views is restricted based on user roles. An admin dashboard has also been created, which is accessible only by admin users.
I have added my code in a separate folder named as user_authentication for better understanding.
Also, I have made necesarry changes in the file settings.py of face recoginition folder.
Instructions for Setup:
After merging this pull request, you will need to follow these steps to apply the changes-
Run Migrations: Apply the database migrations to create the necessary tables and fields for user roles and authentication. Command for that-
python manage.py makemigrations
python manage.py migrate
Create a Superuser: To access the admin dashboard, you’ll need to create a superuser account. You can do this by running the following command:
python manage.py createsuperuser
Run the Development Server: Start the server and test the authentication and role management features by the command:
python manage.py runserver
I wanted to mention these instructions to ensure a smooth workflow. I know you’re familiar with these steps, but I thought it might be helpful to have them documented here. If you have any questions or need further clarification, feel free to reach out. Thank you!
Therefore, I now request you to merge my code. I will be grateful to you!
Checklist: