set default password
This commit is contained in:
parent
6cdd6dc41b
commit
84656ff251
|
@ -51,7 +51,7 @@ pub struct PeachConfig {
|
|||
}
|
||||
|
||||
// helper functions for serializing and deserializing PeachConfig from disc
|
||||
fn save_peach_config(peach_config: PeachConfig) -> Result<PeachConfig, PeachError> {
|
||||
pub fn save_peach_config(peach_config: PeachConfig) -> Result<PeachConfig, PeachError> {
|
||||
// use a file lock to avoid race conditions while saving config
|
||||
let mut lock = LockFile::open(LOCK_FILE_PATH)?;
|
||||
lock.lock()?;
|
||||
|
@ -84,7 +84,8 @@ pub fn load_peach_config() -> Result<PeachConfig, PeachError> {
|
|||
dyn_tsig_key_path: "".to_string(),
|
||||
dyn_enabled: false,
|
||||
ssb_admin_ids: Vec::new(),
|
||||
admin_password_hash: "".to_string(),
|
||||
// default password is `peach`
|
||||
admin_password_hash: "146".to_string(),
|
||||
temporary_password_hash: "".to_string(),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue