Work on admin

This commit is contained in:
Unknown 2014-03-20 07:50:26 -04:00
parent 5cb2d3d2e2
commit 9f9cd6bfc6
19 changed files with 177 additions and 41 deletions

View file

@ -32,6 +32,7 @@ var (
AppUrl string
Domain string
SecretKey string
AdminName string
Cfg *goconfig.ConfigFile
MailService *Mailer
)
@ -173,6 +174,7 @@ func init() {
AppUrl = Cfg.MustValue("server", "ROOT_URL")
Domain = Cfg.MustValue("server", "DOMAIN")
SecretKey = Cfg.MustValue("security", "SECRET_KEY")
AdminName = strings.ToLower(Cfg.MustValue("admin", "NAME"))
}
func NewServices() {