mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-23 06:32:28 +08:00
dev mode
This commit is contained in:
@@ -28,7 +28,7 @@ func init() {
|
|||||||
store.Options(sessions.Options{
|
store.Options(sessions.Options{
|
||||||
MaxAge: 86400 * 999,
|
MaxAge: 86400 * 999,
|
||||||
Path: "/",
|
Path: "/",
|
||||||
Secure: true,
|
Secure: setting.Conf.RunMode == setting.PROD,
|
||||||
HttpOnly: true,
|
HttpOnly: true,
|
||||||
})
|
})
|
||||||
router.Use(sessions.Sessions("su", store))
|
router.Use(sessions.Sessions("su", store))
|
||||||
|
|||||||
Reference in New Issue
Block a user