From 5b45c003228751650612741a7c5bb0f14adefc0c Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 17 Sep 2020 18:55:28 +0200 Subject: [PATCH] switch to security key --- src/domain/session/SessionStatusViewModel.js | 2 +- src/ui/web/session/SessionStatusView.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/domain/session/SessionStatusViewModel.js b/src/domain/session/SessionStatusViewModel.js index a8bb36e7..309d0ca6 100644 --- a/src/domain/session/SessionStatusViewModel.js +++ b/src/domain/session/SessionStatusViewModel.js @@ -141,7 +141,7 @@ export class SessionStatusViewModel extends ViewModel { enterPassphrase(passphrase) { if (passphrase) { - this._session.enableSecretStorage("passphrase", passphrase); + this._session.enableSecretStorage("recoverykey", passphrase); } } } diff --git a/src/ui/web/session/SessionStatusView.js b/src/ui/web/session/SessionStatusView.js index b410b6d2..0a4fea0e 100644 --- a/src/ui/web/session/SessionStatusView.js +++ b/src/ui/web/session/SessionStatusView.js @@ -26,7 +26,7 @@ export class SessionStatusView extends TemplateView { spinner(t, {hidden: vm => !vm.isWaiting}), t.p(vm => vm.statusLabel), 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") : "" ]); }