Why no self register page in the project?

default discord avatar
uljanovs
2 months ago
3

- FACT: there is only self-register to create initial admin account


- EXPECTATION: non-admin users to self register


- WORKAROUND: you can create register page website outside the app:

https://payloadcms.com/community-help/discord/is-it-possible-to-create-a-register-page-rather-than-creating-users-yourself

- PROBLEM with WORKAROUND: user will have to re-enter credentials when redirected to Payload app to access the account

  • discord user avatar
    seanzubrickas
    Payload Team
    2 months ago

    Hey @uljanovs this could certainly be a useful feature for a handful of users! Because Payload was built to be endlessly extensible, and projects handle auth + user creation in many different ways, it's not something we've built into core at this time.



    Feel free to open a feature request on Github as we actively evaluate where those land on our roadmap.

  • discord user avatar
    jarrod_not_jared
    Payload Team
    2 months ago

    The cookie will be valid for any domain listed in the CSRF config property on the payload config. So if they login under a whitelisted domain they will automatically be logged in when going to the admin panel. Am I missing what you are trying to do?

  • default discord avatar
    uljanovs
    2 months ago

    You resolved the issue. Didn't think about this.



    Will do external register page and handle forget password externally.

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.