mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-18 17:48:00 +08:00
fix:修复管理员或作者读取文章时弹出密码页的问题
This commit is contained in:
@@ -377,7 +377,7 @@ func RegisterCache() {
|
||||
|
||||
bc, err := json.Marshal(&memcacheConfig)
|
||||
if err != nil {
|
||||
beego.Error("初始化 Redis 缓存失败 ->", err)
|
||||
beego.Error("初始化 Memcache 缓存失败 ->", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
memcache, err := beegoCache.NewCache("memcache", string(bc))
|
||||
@@ -439,7 +439,7 @@ func init() {
|
||||
if configPath, err := filepath.Abs(conf.ConfigurationFile); err == nil {
|
||||
conf.ConfigurationFile = configPath
|
||||
}
|
||||
gocaptcha.ReadFonts("./static/fonts", ".ttf")
|
||||
gocaptcha.ReadFonts(conf.WorkingDir("static","fonts"), ".ttf")
|
||||
gob.Register(models.Member{})
|
||||
|
||||
if p, err := filepath.Abs(os.Args[0]); err == nil {
|
||||
|
Reference in New Issue
Block a user