admin_model

package
v0.0.0-...-076d96f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2012 License: BSD-2-Clause-Views Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallB

func InstallB(db *mgo.Database, ev ifaces.Event, opt map[string]interface{}, modn, mode string) (bson.ObjectId, error)

opt structure: Modules.modulename

func RegAdmin

func RegAdmin(db *mgo.Database, post map[string][]string) error

func RegFirstAdmin

func RegFirstAdmin(db *mgo.Database, post map[string][]string) error

Registers the first administrator of the site, with fixed name "admin".

func RegUser

func RegUser(db *mgo.Database, post map[string][]string) error

Registers a user, without fluff, only name and password.

func SaveConfig

func SaveConfig(db *mgo.Database, ev ifaces.Event, encoded_conf string) error

func SiteHasAdmin

func SiteHasAdmin(db *mgo.Database) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL