]> git.proxmox.com Git - pve-manager.git/commit
Protect the user's tfa key setting.
authorWolfgang Link <w.link@proxmox.com>
Fri, 17 Jan 2020 13:48:59 +0000 (14:48 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 28 Jan 2020 12:46:54 +0000 (13:46 +0100)
commit5b25580d883f52238cb9faa1fa54c0dc071423c6
tree0ea89059f9121850edff9a89dcad34e43b6db6a3
parentaa857130361ff070e233a8bc358e159604aa2154
Protect the user's tfa key setting.

If oath or U2F is set, it should not be possible to change it
in the GUI on the user edit window.
It disables the second factor, but leave the tfa key behind
in the file tfa.cfg.
The key in the tfa.cfg file is a problem when the user tries to recreate a key.
The old key must be deleted before a new one can be created.
www/manager6/dc/UserEdit.js