Email & Password for project generated with blog template

default discord avatar
Sophist
last month
7

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

  • default discord avatar
    Tinouti
    last month

    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
    Sophist
    last month

    No it didn't. Any workarounds?

  • default discord avatar
    Tinouti
    last month

    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
    last month

    You can delete any users from the users collection in Mongo



    It will reprompt for first user

  • default discord avatar
    Sophist
    last month

    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
    last month

    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.