mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-04 03:16:12 +00:00
tfa: comment that TOTP secret is meant to be base32
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
f92943e2f8
commit
72bff50c04
@ -272,7 +272,7 @@ Ext.define('PVE.window.TFAEdit', {
|
||||
window.crypto.getRandomValues(rnd);
|
||||
var data = '';
|
||||
rnd.forEach(function(b) {
|
||||
// just use the first 5 bit
|
||||
// secret must be base32, so just use the first 5 bits
|
||||
b = b & 0x1f;
|
||||
if (b < 26) {
|
||||
// A..Z
|
||||
|
Loading…
Reference in New Issue
Block a user