Skip to content

Commit daae002

Browse files
committed
syncLatestGlobalPassword: require unlocked controller
1 parent d16963c commit daae002

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/seedless-onboarding-controller/src/SeedlessOnboardingController.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,7 @@ export class SeedlessOnboardingController<EncryptionKey> extends BaseController<
643643
globalPassword: string;
644644
}) {
645645
return await this.#withControllerLock(async () => {
646+
this.#assertIsUnlocked();
646647
const doSyncPassword = async () => {
647648
// update vault with latest globalPassword
648649
const { encKey, authKeyPair } =

0 commit comments

Comments
 (0)