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

/user/<user_id> -- Promoting the user to Admin #4

Open
varun10sudhir opened this issue Sep 22, 2023 · 0 comments
Open

/user/<user_id> -- Promoting the user to Admin #4

varun10sudhir opened this issue Sep 22, 2023 · 0 comments

Comments

@varun10sudhir
Copy link
Collaborator

A route to promote the user to admin
A request header by the name 'admin_code" needs to be present with a password that will promote a user to admin access
Assume the pasword is "admin"
If the correct password is inputted, promote the user to Admin and return an appropriate JSON message
If the password is incorrect , return a JSON message informing the user that he has been denied access

@varun10sudhir varun10sudhir changed the title /user/<user_id> /user/<user_id> -- Promoting the user to Admin Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant