switch to security key

This commit is contained in:
Bruno Windels 2020-09-17 18:55:28 +02:00
parent ceac6008bc
commit 5b45c00322
2 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ export class SessionStatusViewModel extends ViewModel {
enterPassphrase(passphrase) { enterPassphrase(passphrase) {
if (passphrase) { if (passphrase) {
this._session.enableSecretStorage("passphrase", passphrase); this._session.enableSecretStorage("recoverykey", passphrase);
} }
} }
} }

View File

@ -26,7 +26,7 @@ export class SessionStatusView extends TemplateView {
spinner(t, {hidden: vm => !vm.isWaiting}), spinner(t, {hidden: vm => !vm.isWaiting}),
t.p(vm => vm.statusLabel), t.p(vm => vm.statusLabel),
t.if(vm => vm.isConnectNowShown, t.createTemplate(t => t.button({onClick: () => vm.connectNow()}, "Retry now"))), t.if(vm => vm.isConnectNowShown, t.createTemplate(t => t.button({onClick: () => vm.connectNow()}, "Retry now"))),
t.if(vm => vm.isSecretStorageShown, t.createTemplate(t => t.button({onClick: () => vm.enterPassphrase(prompt("passphrase"))}, "Enter passphrase"))), t.if(vm => vm.isSecretStorageShown, t.createTemplate(t => t.button({onClick: () => vm.enterPassphrase(prompt("Security key"))}, "Enter security key"))),
window.DEBUG ? t.button({id: "showlogs"}, "Show logs") : "" window.DEBUG ? t.button({id: "showlogs"}, "Show logs") : ""
]); ]);
} }