MCPcopy Create free account
hub / github.com/Recordscript/recordscript / get_permanent_password

Method get_permanent_password

libs/hbb_common/src/config.rs:980–988  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 4

is_emptyMethod · 0.80
getMethod · 0.80
cloneMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected