support restore preset password except clear password
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
1 parent
8b0e258673
commit
af5227a537
1 file changed
+2
@@ -1070,8 +1070,10 @@ impl Config {
|
|||||||
.get("password")
|
.get("password")
|
||||||
.map_or(false, |v| v == password)
|
.map_or(false, |v| v == password)
|
||||||
{
|
{
|
||||||
|
if CONFIG.read().unwrap().password.is_empty() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
let mut config = CONFIG.write().unwrap();
|
let mut config = CONFIG.write().unwrap();
|
||||||
if password == config.password {
|
if password == config.password {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in new issue
Block a user