Multi-tenant example - can't log in as "user" #6594
nhwebforge
started this conversation in
General
Replies: 1 comment 2 replies
-
The user accounts are acting as users that can interact with the payload API endpoints but cannot access the admin panel. This is common if you have an app that users can log into but you do not want them to log into the payload dashboard. Think like, a mobile app, you have users that log into the app(downloaded from the App Store) but not to the app that manages the content in the app (payload). The same could apply to a web app, your app might have content that needs managed but you have a separate app built out for users to use – specific to your app. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
So, I've local-installed the multi-tenant example and it's up and running. Connecting happily to my MongoDB. I can log in as super-admin on localhost:3000/admin no problem. Changed hosts file to reflect the ".com" and I can log in as the "abc" admin on abc.localhost.com:3000 and the "bbc" admin bbc.localhost.com:3000. So far, so good.
However, when I log in as "[email protected]" or "[email protected]" all I get is "Unauthorized, you must be logged in to make this request. You are not allowed to access this page." and am invited to log in.
What exactly am I supposed to see when I log in as a simple "user"? How can I view the "abc-home" or "bbc-home" pages that are configured? Should it be as simple as going to abc.localhost.com:3000/abc-home?
Thanks in advance for any advice you can provide.
NH
Beta Was this translation helpful? Give feedback.
All reactions