mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-07 22:13:24 +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);
|
window.crypto.getRandomValues(rnd);
|
||||||
var data = '';
|
var data = '';
|
||||||
rnd.forEach(function(b) {
|
rnd.forEach(function(b) {
|
||||||
// just use the first 5 bit
|
// secret must be base32, so just use the first 5 bits
|
||||||
b = b & 0x1f;
|
b = b & 0x1f;
|
||||||
if (b < 26) {
|
if (b < 26) {
|
||||||
// A..Z
|
// A..Z
|
||||||
|
Loading…
Reference in New Issue
Block a user