express-admin icon indicating copy to clipboard operation
express-admin copied to clipboard

How to create another admin account

Open ajax13 opened this issue 11 years ago • 4 comments
trafficstars

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

ajax13 avatar Dec 13 '13 13:12 ajax13

No, will add it in the next release.

simov avatar Dec 13 '13 13:12 simov

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

ajax13 avatar Dec 13 '13 14:12 ajax13

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": ".."
}

simov avatar Dec 13 '13 14:12 simov

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

dragon753 avatar Feb 23 '16 05:02 dragon753