schema: add Init record
This commit is contained in:
parent
2eef5a1328
commit
8549e0188d
@ -1,10 +1,10 @@
|
|||||||
{ Schema =
|
{ Schema =
|
||||||
./schema.dhall
|
./schema.dhall
|
||||||
sha256:1aa8c2f42fc6fc3055a35c1285314340f934aa50226c6cdc96f8d19471a84835
|
sha256:d393b005ad10d5b8e775956dbc4e792c9da9c7760baf03e537dfac52b1ecfd31
|
||||||
? ./schema.dhall
|
? ./schema.dhall
|
||||||
, Schema/validate =
|
, Schema/validate =
|
||||||
./validate.dhall
|
./validate.dhall
|
||||||
sha256:78f05c1c7d49d3d8854b8a000600a30e55c7c2771bf9f91dc4717ef30a191a91
|
sha256:aff9136148e3214a4ea0f091901516cf5e74eb24648492b60fa9ee6892e1237b
|
||||||
? ./validate.dhall
|
? ./validate.dhall
|
||||||
, Schema/version =
|
, Schema/version =
|
||||||
./version.dhall
|
./version.dhall
|
||||||
|
15
schema.dhall
15
schema.dhall
@ -40,7 +40,7 @@ let Schema =
|
|||||||
, MaxAge : Natural
|
, MaxAge : Natural
|
||||||
}
|
}
|
||||||
, Logger : { JSON : Bool, Fmt : Optional Text }
|
, Logger : { JSON : Bool, Fmt : Optional Text }
|
||||||
, InitialAdminPassword : Text
|
, Init : { CreateAdmin : Bool, AdminPassword : Text }
|
||||||
, Registration : { Allowed : Bool }
|
, Registration : { Allowed : Bool }
|
||||||
}
|
}
|
||||||
, default =
|
, default =
|
||||||
@ -78,9 +78,16 @@ let Schema =
|
|||||||
, MaxAge = 3600
|
, MaxAge = 3600
|
||||||
}
|
}
|
||||||
, Logger = { JSON = True, Fmt = None Text }
|
, Logger = { JSON = True, Fmt = None Text }
|
||||||
, InitialAdminPassword =
|
, Init =
|
||||||
-- | used for the first admin, forced change on first login.
|
{ CreateAdmin =
|
||||||
"50ce50fd0e4f5894d74c4caecb450b00c594681d9397de98ffc0c76af5cff5953eb795f7"
|
-- | if this is True, attempt to create a user with admin
|
||||||
|
-- | privileges with the password specified below (or better -
|
||||||
|
-- | overriden); it fails if users already exist in the DB.
|
||||||
|
False
|
||||||
|
, AdminPassword =
|
||||||
|
-- | used for the first admin, forced change on first login.
|
||||||
|
"50ce50fd0e4f5894d74c4caecb450b00c594681d9397de98ffc0c76af5cff5953eb795f7"
|
||||||
|
}
|
||||||
, Registration.Allowed = True
|
, Registration.Allowed = True
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ let Prelude =
|
|||||||
|
|
||||||
let Schema =
|
let Schema =
|
||||||
./schema.dhall
|
./schema.dhall
|
||||||
sha256:1aa8c2f42fc6fc3055a35c1285314340f934aa50226c6cdc96f8d19471a84835
|
sha256:d393b005ad10d5b8e775956dbc4e792c9da9c7760baf03e537dfac52b1ecfd31
|
||||||
? ./schema.dhall
|
? ./schema.dhall
|
||||||
|
|
||||||
let Schema/validate
|
let Schema/validate
|
||||||
|
Loading…
Reference in New Issue
Block a user