mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-16 20:11:08 +00:00
fix: harden app lock system unlock flow
This commit is contained in:
1 parent
f6a49dbf0a
commit
0ea707f70f
14 files changed
+114
-26
No files matched your search
@@ -20,8 +20,8 @@ export function useAppLockBridge() {
|
||||
return netcattyBridge.get()?.requestAppLockUnlock?.(password) ?? { ok: false as const, error: 'incorrect' as const };
|
||||
}, []);
|
||||
|
||||
const requestReset = useCallback(async () => {
|
||||
return netcattyBridge.get()?.requestAppLockReset?.();
|
||||
const requestReset = useCallback(async (currentPassword: string) => {
|
||||
return netcattyBridge.get()?.requestAppLockReset?.(currentPassword);
|
||||
}, []);
|
||||
|
||||
const reportActivity = useCallback(async () => {
|
||||
|
||||
Reference in new issue
Block a user