gui: enumerate recovery keys and list in 2nd factor window

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller authored and Thomas Lamprecht committed 2021-01-18 13:51:23 +01:00
1 parent ca1060862e
commit 8ae6d28cd4
2 files changed
+23 -4

No files matched your search

+6 -1
View File
@@ -24,7 +24,12 @@ Ext.define('PBS.window.AddTfaRecovery', {
return;
}
let values = response.result.data.recovery.join("\n");
let values = response
.result
.data
.recovery
.map((v, i) => `${i}: ${v}`)
.join("\n");
Ext.create('PBS.window.TfaRecoveryShow', {
autoShow: true,
userid: this.getViewModel().get('userid'),