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

Admin Issue #6

Closed
Aman9641 opened this issue May 16, 2024 · 1 comment
Closed

Admin Issue #6

Aman9641 opened this issue May 16, 2024 · 1 comment

Comments

@Aman9641
Copy link

I have cloned your project but when I use admin login it will take a 2 sec pause to admin page and then redirect to home page and there is no product how to correct it ?

@Abdullah-moiz
Copy link
Owner

when you register a new user by default it is consider as user role

  1. go to mongodb compass
  2. select e-commerce collection
  3. select User documents
  4. find new registered user
  5. change role to admin
  6. save the document
  7. now clear login again
  8. you will be redirected to admin dashboard now you can add a new product

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

No branches or pull requests

2 participants