()
| 978 | } |
| 979 | |
| 980 | pub fn get_permanent_password() -> String { |
| 981 | let mut password = CONFIG.read().unwrap().password.clone(); |
| 982 | if password.is_empty() { |
| 983 | if let Some(v) = HARD_SETTINGS.read().unwrap().get("password") { |
| 984 | password = v.to_owned(); |
| 985 | } |
| 986 | } |
| 987 | password |
| 988 | } |
| 989 | |
| 990 | pub fn set_salt(salt: &str) { |
| 991 | let mut config = CONFIG.write().unwrap(); |