Add user management interface
This commit is contained in:
parent
6cd5b1bc5e
commit
6f906ccae4
8 changed files with 124 additions and 8 deletions
|
@ -65,6 +65,14 @@ func (db *roDB) SetPassword(name string, pass string) error {
|
|||
return errors.New("RO database")
|
||||
}
|
||||
|
||||
func (db *roDB) SetRole(name, role string) error {
|
||||
return errors.New("RO database")
|
||||
}
|
||||
|
||||
func (db *roDB) ListUsers() ([]User, error) {
|
||||
return db.db.ListUsers()
|
||||
}
|
||||
|
||||
func (db *roDB) AddNews(text string) error {
|
||||
return errors.New("RO database")
|
||||
}
|
||||
|
|
Reference in a new issue