diff --git a/src/cli/mod.rs b/src/cli/mod.rs index d7e70d2b..34e94e32 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -30,7 +30,7 @@ We would love it if you could star the repository (https://github.com/surrealdb/ "; static PASS: Lazy = Lazy::new(|| { - rand::thread_rng().sample_iter(&Alphanumeric).take(128).map(char::from).collect::() + rand::thread_rng().sample_iter(&Alphanumeric).take(16).map(char::from).collect::() }); fn file_valid(v: &str) -> Result<(), String> { @@ -165,6 +165,7 @@ pub fn init() { Arg::new("pass") .short('p') .long("pass") + .hide_default_value(true) .forbid_empty_values(true) .default_value(PASS.as_str()) .help("The master password for the database"),