express-admin
express-admin copied to clipboard
How to create another admin account
Hi, There's a command to add a new admin user ?
No, will add it in the next release.
ok thx, in case i want just to change the password, is it possible?
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": ".."
}
@ajax13 how about this? https://github.com/dragon753/express-admin/tree/master/lib/change