Email & Password for project generated with blog template

default discord avatar
asophist
7 months ago
6

Couldn't find any way to login to a newly generated project. Any pointers? Thanks

  • default discord avatar
    tinouti
    7 months ago

    If you don't have any user yet, Payload should prompt you with a "create your first user" screen when first accessing the admin. Did this not happen for you?

  • default discord avatar
    asophist
    7 months ago

    No it didn't. Any workarounds?

  • default discord avatar
    tinouti
    7 months ago

    That's weird. I'd check your database first to make sure you don't already have a user, and if not, try accessing the first user page directly maybe?


    /admin/create-first-user
  • discord user avatar
    denolfe
    Payload Team
    7 months ago

    You can delete any users from the users collection in Mongo



    It will reprompt for first user

  • default discord avatar
    asophist
    7 months ago

    My bad, I was reusing a db which had a users collection already. Deleting all users did the trick. Thanks @tinouti and @denolfe . Cheers!

  • discord user avatar
    denolfe
    Payload Team
    7 months ago

    Ah, I thought about asking if you were connecting to a previous DB, glad you got it sorted 👍

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.