mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
Handle previous secret format (#221)
Co-authored-by: 0xturboblitz <florent.tavernier@gmail.com>
This commit is contained in:
committed by
GitHub
parent
66675bc420
commit
c12bd6b5f5
@@ -481,7 +481,7 @@
|
||||
CODE_SIGN_ENTITLEMENTS = OpenPassport/OpenPassportDebug.entitlements;
|
||||
CODE_SIGN_IDENTITY = "Apple Development";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 96;
|
||||
CURRENT_PROJECT_VERSION = 97;
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
DEVELOPMENT_TEAM = 5B29R5LYHQ;
|
||||
ENABLE_BITCODE = NO;
|
||||
@@ -596,7 +596,7 @@
|
||||
"$(PROJECT_DIR)",
|
||||
"$(PROJECT_DIR)/MoproKit/Libs",
|
||||
);
|
||||
MARKETING_VERSION = 2.4.4;
|
||||
MARKETING_VERSION = 2.4.5;
|
||||
OTHER_LDFLAGS = (
|
||||
"$(inherited)",
|
||||
"-ObjC",
|
||||
@@ -619,7 +619,7 @@
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CODE_SIGN_ENTITLEMENTS = OpenPassport/OpenPassport.entitlements;
|
||||
CURRENT_PROJECT_VERSION = 96;
|
||||
CURRENT_PROJECT_VERSION = 97;
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
DEVELOPMENT_TEAM = 5B29R5LYHQ;
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
@@ -733,7 +733,7 @@
|
||||
"$(PROJECT_DIR)",
|
||||
"$(PROJECT_DIR)/MoproKit/Libs",
|
||||
);
|
||||
MARKETING_VERSION = 2.4.4;
|
||||
MARKETING_VERSION = 2.4.5;
|
||||
OTHER_LDFLAGS = (
|
||||
"$(inherited)",
|
||||
"-ObjC",
|
||||
|
||||
@@ -100,7 +100,17 @@ async function loadOrCreateMnemonic() {
|
||||
service: SERVICE_NAME,
|
||||
});
|
||||
if (storedMnemonic) {
|
||||
return storedMnemonic.password;
|
||||
try {
|
||||
JSON.parse(storedMnemonic.password);
|
||||
console.log('Stored mnemonic parsed successfully');
|
||||
return storedMnemonic.password;
|
||||
} catch (e) {
|
||||
console.log(
|
||||
'Error parsing stored mnemonic, old secret format was used',
|
||||
e,
|
||||
);
|
||||
console.log('Creating a new one');
|
||||
}
|
||||
}
|
||||
|
||||
console.log('No secret found, creating one');
|
||||
|
||||
Reference in New Issue
Block a user