refactor: visitor view (#107)

* refactor: update api

* refactor: visitor view

* chore: update seed data
This commit is contained in:
boojack
2022-07-07 23:11:20 +08:00
committed by GitHub
parent 346d219cd5
commit 6f32643d7c
27 changed files with 252 additions and 257 deletions

View File

@ -45,7 +45,7 @@ func NewServer(profile *profile.Profile) *Server {
HTML5: true,
}))
// In dev mode, set the const secret key to make login session persistence.
// In dev mode, set the const secret key to make signin session persistence.
secret := []byte("usememos")
if profile.Mode == "prod" {
secret = securecookie.GenerateRandomKey(16)