switch to security key
This commit is contained in:
parent
ceac6008bc
commit
5b45c00322
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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") : ""
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue