Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

first user should be auto admin

Open FINIUS opened this issue 10 years ago • 3 comments

Wouldn't it be useful if the first created user in the system/db is automatically flagged with admin privileges? I found it very geeky to have to manually edit the database to set an admin flag.

FINIUS avatar Jan 13 '16 15:01 FINIUS

That's exactly what happens! First registered user is set as admin. Did this not work for you?

marceloschmidt avatar Jan 13 '16 16:01 marceloschmidt

https://github.com/RocketChat/Rocket.Chat/blob/develop/server%2Flib%2Faccounts.coffee#L83-L85

marceloschmidt avatar Jan 13 '16 16:01 marceloschmidt

Ah, okay... maybe the same issue as the meteor thing, cause I was up to follow this guide: https://github.com/RocketChat/Rocket.Chat/wiki/Creating-the-First-Admin

ghost avatar Jan 13 '16 16:01 ghost