From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id F3D2762891 for ; Tue, 24 Nov 2020 10:42:33 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id DEFCD9C36 for ; Tue, 24 Nov 2020 10:42:03 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [212.186.127.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 4ADE79C2C for ; Tue, 24 Nov 2020 10:42:03 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 0EA7144040 for ; Tue, 24 Nov 2020 10:42:03 +0100 (CET) Date: Tue, 24 Nov 2020 10:42:01 +0100 From: Wolfgang Bumiller To: pbs-devel@lists.proxmox.com Message-ID: <20201124094201.tuamohy25lodgvdu@wobu-vie.proxmox.com> References: <20201119145608.16866-1-w.bumiller@proxmox.com> <20201119145608.16866-7-w.bumiller@proxmox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201119145608.16866-7-w.bumiller@proxmox.com> User-Agent: NeoMutt/20180716 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.024 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: Re: [pbs-devel] [RFC backup 6/6] gui: tfa support X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Nov 2020 09:42:34 -0000 2 notes: On Thu, Nov 19, 2020 at 03:56:08PM +0100, Wolfgang Bumiller wrote: > Signed-off-by: Wolfgang Bumiller > --- > www/LoginView.js | 323 +++++++++++++++++++++++++++++++++-- > www/Makefile | 6 + > www/OnlineHelpInfo.js | 36 ---- > www/Utils.js | 59 +++++++ > www/config/TfaView.js | 322 ++++++++++++++++++++++++++++++++++ > www/index.hbs | 1 + > www/panel/AccessControl.js | 6 + > www/window/AddTfaRecovery.js | 211 +++++++++++++++++++++++ > www/window/AddTotp.js | 283 ++++++++++++++++++++++++++++++ > www/window/AddWebauthn.js | 193 +++++++++++++++++++++ > www/window/TfaEdit.js | 92 ++++++++++ > 11 files changed, 1478 insertions(+), 54 deletions(-) > create mode 100644 www/config/TfaView.js > create mode 100644 www/window/AddTfaRecovery.js > create mode 100644 www/window/AddTotp.js > create mode 100644 www/window/AddWebauthn.js > create mode 100644 www/window/TfaEdit.js > > diff --git a/www/Makefile b/www/Makefile > index 1df2195a..86e0516e 100644 > --- a/www/Makefile > +++ b/www/Makefile > @@ -16,12 +16,16 @@ JSSRC= \ > data/RunningTasksStore.js \ > button/TaskButton.js \ > config/UserView.js \ > + config/TfaView.js \ > config/TokenView.js \ > config/RemoteView.js \ > config/ACLView.js \ > config/SyncView.js \ > config/VerifyView.js \ > window/ACLEdit.js \ > + window/AddTfaRecovery.js \ > + window/AddTotp.js \ > + window/AddWebauthn.js \ > window/BackupFileDownloader.js \ > window/BackupGroupChangeOwner.js \ > window/CreateDirectory.js \ > @@ -34,6 +38,7 @@ JSSRC= \ > window/UserEdit.js \ > window/UserPassword.js \ > window/TokenEdit.js \ > + window/TfaEdit.js \ > window/VerifyJobEdit.js \ > window/ZFSCreate.js \ > dashboard/DataStoreStatistics.js \ > @@ -100,6 +105,7 @@ install: js/proxmox-backup-gui.js css/ext6-pbs.css index.hbs > install -m644 index.hbs $(DESTDIR)$(JSDIR)/ > install -dm755 $(DESTDIR)$(JSDIR)/js > install -m644 js/proxmox-backup-gui.js $(DESTDIR)$(JSDIR)/js/ > + install -m 0644 qrcode.min.js $(DESTDIR)$(JSDIR)/ FYI this is a leftover from before the this was packaged separately, needs to be removed when building a package without the file present. > install -dm755 $(DESTDIR)$(JSDIR)/css > install -m644 css/ext6-pbs.css $(DESTDIR)$(JSDIR)/css/ > install -dm755 $(DESTDIR)$(JSDIR)/images > diff --git a/www/OnlineHelpInfo.js b/www/OnlineHelpInfo.js > index aee73bf6..c54912d8 100644 > --- a/www/OnlineHelpInfo.js > +++ b/www/OnlineHelpInfo.js The changs in this file were a build artifact...? > @@ -75,42 +75,6 @@ const proxmoxOnlineHelpInfo = { > "link": "/docs/pve-integration.html#pve-integration", > "title": "`Proxmox VE`_ Integration" > }, > - "rst-primer": { > - "link": "/docs/reStructuredText-primer.html#rst-primer", > - "title": "reStructuredText Primer" > - }, > - "rst-inline-markup": { > - "link": "/docs/reStructuredText-primer.html#rst-inline-markup", > - "title": "Inline markup" > - }, > - "rst-literal-blocks": { > - "link": "/docs/reStructuredText-primer.html#rst-literal-blocks", > - "title": "Literal blocks" > - }, > - "rst-doctest-blocks": { > - "link": "/docs/reStructuredText-primer.html#rst-doctest-blocks", > - "title": "Doctest blocks" > - }, > - "rst-tables": { > - "link": "/docs/reStructuredText-primer.html#rst-tables", > - "title": "Tables" > - }, > - "rst-field-lists": { > - "link": "/docs/reStructuredText-primer.html#rst-field-lists", > - "title": "Field Lists" > - }, > - "rst-roles-alt": { > - "link": "/docs/reStructuredText-primer.html#rst-roles-alt", > - "title": "Roles" > - }, > - "rst-directives": { > - "link": "/docs/reStructuredText-primer.html#rst-directives", > - "title": "Directives" > - }, > - "html-meta": { > - "link": "/docs/reStructuredText-primer.html#html-meta", > - "title": "HTML Metadata" > - }, > "storage-disk-management": { > "link": "/docs/storage.html#storage-disk-management", > "title": "Disk Management"