mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-21 18:24:26 +08:00
modify cookies name
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
|||||||
"github.com/mayswind/lab/pkg/settings"
|
"github.com/mayswind/lab/pkg/settings"
|
||||||
)
|
)
|
||||||
|
|
||||||
const settingsCookieName = "ACP_SETTINGS"
|
const settingsCookieName = "lab_server_settings"
|
||||||
|
|
||||||
// ServerSettingsCookie adds server settings to cookies in response
|
// ServerSettingsCookie adds server settings to cookies in response
|
||||||
func ServerSettingsCookie(config *settings.Config) core.MiddlewareHandlerFunc {
|
func ServerSettingsCookie(config *settings.Config) core.MiddlewareHandlerFunc {
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
import Cookies from 'js-cookie';
|
import Cookies from 'js-cookie';
|
||||||
|
|
||||||
const settingsLocalStorageKey = 'lab_app_settings';
|
const settingsLocalStorageKey = 'lab_app_settings';
|
||||||
const serverSettingsCookieKey = 'ACP_SETTINGS';
|
const serverSettingsCookieKey = 'lab_server_settings';
|
||||||
|
|
||||||
const defaultSettings = {
|
const defaultSettings = {
|
||||||
lang: 'en',
|
lang: 'en',
|
||||||
|
|||||||
Reference in New Issue
Block a user