jrtechs / NodeJSBlog

Personal blog written from scratch using Node.js, Bootstrap, and MySQL.
https://jrtechs.net
Mozilla Public License 2.0
4 stars 5 forks source link

CLI Utility for adding Users #106

Closed jrtechs closed 2 years ago

jrtechs commented 2 years ago

Right now there is no way to add a fresh user to DB right after you install this application. I have just been manually doing this via the MySQL SLI, but that requires you to know how to hash the password. I want to add a simple CLI that can add users to the DB to make the process of adding a user easier. Note: after you have a base admin user, you can add more users with the web interface.

jrtechs commented 2 years ago

With latest update with ADMIN_CHECK config property, this is no-longer necessary since you can disable the admin check and then go to admin page to create a user.