schema: add Cookie{Auth,Encr}Secret

This commit is contained in:
leo 2023-05-13 21:49:50 +02:00
parent 2652bb9d22
commit 2ebd117c62
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ
3 changed files with 13 additions and 5 deletions

@ -1,10 +1,10 @@
{ Schema = { Schema =
./schema.dhall ./schema.dhall
sha256:12bd172676c7db8ed849f74718378adead421710f71fb7d92f3075c2489ee5c2 sha256:0695554541b911bb3ee4b3605ba01df4caab6533da0d4fd32e9d774c41d19d01
? ./schema.dhall ? ./schema.dhall
, Schema/validate = , Schema/validate =
./validate.dhall ./validate.dhall
sha256:28399e4a2c2e00c7ddcb0e071a1d0bd1f3fa334b3b3ae8a34ecf5a9fb89f608d sha256:0aef242b8f9e63d36fcf407b71f8a6369bbcb832125c39e61f92b95b7027fc77
? ./validate.dhall ? ./validate.dhall
, Prelude = , Prelude =
./prelude.dhall ./prelude.dhall

@ -6,7 +6,11 @@ let Schema =
, AppName : Text , AppName : Text
, LiveMode : Bool , LiveMode : Bool
, DevelMode : Bool , DevelMode : Bool
, Session : { CookieName : Optional Text, CookieSecret : Text } , Session :
{ CookieName : Text
, CookieAuthSecret : Text
, CookieEncrSecret : Text
}
, Logger : { JSON : Bool, Fmt : Optional Text } , Logger : { JSON : Bool, Fmt : Optional Text }
, InitialAdminPassword : Text , InitialAdminPassword : Text
, Registration : { Allowed : Bool } , Registration : { Allowed : Bool }
@ -18,7 +22,11 @@ let Schema =
, AppName = "pcmt" , AppName = "pcmt"
, LiveMode = False , LiveMode = False
, DevelMode = False , DevelMode = False
, Session = { CookieName = None Text, CookieSecret = "secretz" } , Session =
{ CookieName = "pcmt_session"
, CookieAuthSecret = ""
, CookieEncrSecret = ""
}
, Logger = { JSON = True, Fmt = None Text } , Logger = { JSON = True, Fmt = None Text }
, InitialAdminPassword = , InitialAdminPassword =
-- | used for the first admin, forced change on first login. -- | used for the first admin, forced change on first login.

@ -5,7 +5,7 @@ let Prelude =
let Schema = let Schema =
./schema.dhall ./schema.dhall
sha256:12bd172676c7db8ed849f74718378adead421710f71fb7d92f3075c2489ee5c2 sha256:0695554541b911bb3ee4b3605ba01df4caab6533da0d4fd32e9d774c41d19d01
? ./schema.dhall ? ./schema.dhall
let Schema/validate let Schema/validate