From 5ef6964d4161ac09ebdcbaa21b9e3100820836a1 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 11 May 2023 05:09:16 +0200 Subject: [PATCH] schema: add InitialAdminPassword --- package.dhall | 4 ++-- schema.dhall | 4 ++++ validate.dhall | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/package.dhall b/package.dhall index a75cd6a..0d44c90 100644 --- a/package.dhall +++ b/package.dhall @@ -1,10 +1,10 @@ { Schema = ./schema.dhall - sha256:3269ff2c6eba9856b819f3e7fccd44f2745fdff9d02498e6f0a1474ce650af17 + sha256:3bd2caed23192f7d8a6e6ff0ce51886c9fd382d02c0e949a8349003c9ba9f6c5 ? ./schema.dhall , Schema/validate = ./validate.dhall - sha256:9e327f316fce0ced3598e14020a8a1ee3bd603a7817cb9e62ceddac3ece10e76 + sha256:c6147b6ad6d4669966a5340871f433a98977dc2daab9d18aa57074670fbcd33e ? ./validate.dhall , Prelude = ./prelude.dhall diff --git a/schema.dhall b/schema.dhall index f4c2d24..03862f7 100644 --- a/schema.dhall +++ b/schema.dhall @@ -8,6 +8,7 @@ let Schema = , DevelMode : Bool , Session : { CookieName : Optional Text, CookieSecret : Text } , Logger : { Json : Bool, Fmt : Optional Text } + , InitialAdminPassword : Text , Registration : { Allowed : Bool } } , default = @@ -19,6 +20,9 @@ let Schema = , DevelMode = False , Session = { CookieName = None Text, CookieSecret = "secretz" } , Logger = { Json = True, Fmt = None Text } + , InitialAdminPassword = + -- | used for the first admin, forced change on first login. + "50ce50fd0e4f5894d74c4caecb450b00c594681d9397de98ffc0c76af5cff5953eb795f7" , Registration.Allowed = True } } diff --git a/validate.dhall b/validate.dhall index c4fa365..9c88c55 100644 --- a/validate.dhall +++ b/validate.dhall @@ -5,7 +5,7 @@ let Prelude = let Schema = ./schema.dhall - sha256:3269ff2c6eba9856b819f3e7fccd44f2745fdff9d02498e6f0a1474ce650af17 + sha256:3bd2caed23192f7d8a6e6ff0ce51886c9fd382d02c0e949a8349003c9ba9f6c5 ? ./schema.dhall let Schema/validate