Creating user directly in db


#1

I’m using self-hosted ghost in docker, 2.14.3-alpine image.

I’m trying to add user directly to ghost.db. After adding user to users and admin role link for a new user to roles_users I can successfully log in and view admin page but every save action causes “Validation (matches) failed for id” error. Any thoughts?
Thank you.


#2

It’s possible that you’re not using an ObjectID for the id in the database.

You shouldn’t be adding users directly from the database though, we have invite functionality in the Admin application, and if email is not configured, you can pull out the invite tokens from the database.


closed #3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.