goshuirc / bnc

a simple irc bouncer written in go
https://goshubnc.org/
MIT License
17 stars 3 forks source link

go over how we control admin privs on the bouncer #39

Open DanielOaks opened 7 years ago

DanielOaks commented 7 years ago

take stock of this, how we store whether users are admin or not, making sure there's always one admin user available, etc.

maybe we should have a cli command that just adds an admin user to the existing db for if the db gets a bit stuffed or if someone forgets their admin creds?

biox commented 7 years ago

What would admin/regular user separation look like?

I think that the same method that 'The Lounge' uses could be appropriate here - start with no users by default, but expose a command that allows for user addition - something like bnc user add biox would feel right to me.