admin username & jsonp fixed

This commit is contained in:
life
2014-10-23 10:45:03 +08:00
parent 536c5de56a
commit b0b304d5dd
4 changed files with 21 additions and 20 deletions

View File

@ -129,7 +129,4 @@ func init() {
revel.InterceptFunc(AuthInterceptor, revel.BEFORE, &AdminEmail{})
revel.InterceptFunc(AuthInterceptor, revel.BEFORE, &AdminUpgrade{})
revel.InterceptFunc(AuthInterceptor, revel.BEFORE, &AdminData{})
revel.OnAppStart(func() {
adminUsername, _ = revel.Config.String("adminUsername")
})
}