2fa for unattended access
This commit is contained in:
parent
80857c22c9
commit
44e6b7dbb0
55 changed files with 673 additions and 60 deletions
|
|
@ -141,6 +141,14 @@ pub fn get_license() -> String {
|
|||
Default::default()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn refresh_options() {
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
{
|
||||
*OPTIONS.lock().unwrap() = Config::get_options();
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn get_option<T: AsRef<str>>(key: T) -> String {
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue