simov / express-admin

MySQL, MariaDB, PostgreSQL, SQLite admin for Node.js
MIT License
1.17k stars 223 forks source link

How to create another admin account #29

Closed ajax13 closed 1 year ago

ajax13 commented 10 years ago

Hi, There's a command to add a new admin user ?

simov commented 10 years ago

No, will add it in the next release.

ajax13 commented 10 years ago

ok thx, in case i want just to change the password, is it possible?

simov commented 10 years ago

There isn't an UI for this but you can workaround this by creating an empty folder and run the admin with this folder. After you enter your settings and the files are generated open up the users.json file, copy the entire ajax13 object and paste it inside your original user.json after your first account (don't forget to separate them with comma ,)

"ajax13": {
    "name": "ajax13",
    "admin": true,
    "salt": "...",
    "hash": ".."
}
dragon753 commented 8 years ago

@ajax13 how about this? https://github.com/dragon753/express-admin/tree/master/lib/change