prepare config

master
Avril 4 years ago
parent def20d1e22
commit 9e79d8a6b3
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -37,7 +37,7 @@ async-trait = "0.1.40"
hex-literal = "0.3.1" hex-literal = "0.3.1"
once_cell = "1.4.1" once_cell = "1.4.1"
getrandom = "0.2.0" getrandom = "0.2.0"
#serde_json = "1.0.57" # serde not suitable for our text formatting :/ maybe just use `cbor` -> base64 with text header? would be a PEM-like format. sounds good imo
[build-dependencies] [build-dependencies]
rustc_version = "0.2" rustc_version = "0.2"
config_struct = "0.5.0"

@ -0,0 +1,15 @@
[password]
length = 3
message = "Not a safe password"
[[password.deny]]
message = "Password too alphanumeric"
value = ["^[A-z]+$"]
type = "regex"
case-sensitive = false
[[password.allow]]
warn = true
message = "Empty string password"
value = [""]
type = "exact"
Loading…
Cancel
Save