mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
switch to security key
This commit is contained in:
parent
ceac6008bc
commit
5b45c00322
@ -141,7 +141,7 @@ export class SessionStatusViewModel extends ViewModel {
|
||||
|
||||
enterPassphrase(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}),
|
||||
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") : ""
|
||||
]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user