refact(password): Store permanent password as hashed verifier (#14619)

* refact(password): Store permanent password as hashed verifier

Signed-off-by: fufesou <linlong1266@gmail.com>

* fix(password): remove unused code

Signed-off-by: fufesou <linlong1266@gmail.com>

* fix(password): mobile, password dialog, width 500

Signed-off-by: fufesou <linlong1266@gmail.com>

---------

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2026-03-26 14:49:54 +08:00
committed by GitHub
parent 285e29d2dc
commit 170516572e
64 changed files with 563 additions and 192 deletions

View File

@@ -212,12 +212,16 @@ impl UI {
update_temporary_password()
}
fn permanent_password(&self) -> String {
permanent_password()
fn set_permanent_password(&self, password: String) {
let _ = set_permanent_password_with_result(password);
}
fn set_permanent_password(&self, password: String) {
set_permanent_password(password);
fn is_local_permanent_password_set(&self) -> bool {
is_local_permanent_password_set()
}
fn is_permanent_password_set(&self) -> bool {
is_permanent_password_set()
}
fn get_remote_id(&mut self) -> String {
@@ -726,8 +730,9 @@ impl sciter::EventHandler for UI {
fn get_id();
fn temporary_password();
fn update_temporary_password();
fn permanent_password();
fn set_permanent_password(String);
fn is_local_permanent_password_set();
fn is_permanent_password_set();
fn get_remote_id();
fn set_remote_id(String);
fn closing(i32, i32, i32, i32);