mirror of
https://github.com/seiichiro0185/sailotp.git
synced 2024-11-21 23:39:41 +00:00
Include Length in Generated QR-Code
This commit is contained in:
parent
7caade42be
commit
8338ca6d73
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ Page {
|
||||||
var otpurl = "";
|
var otpurl = "";
|
||||||
if (paramType == "TOTP") {
|
if (paramType == "TOTP") {
|
||||||
if (paramLabel != "" && paramKey != "")
|
if (paramLabel != "" && paramKey != "")
|
||||||
otpurl = "otpauth://totp/"+paramLabel+"?secret="+paramKey;
|
otpurl = "otpauth://totp/"+paramLabel+"?secret="+paramKey+"&digits="+paramLen;
|
||||||
|
|
||||||
} else if (paramType == "HOTP") {
|
} else if (paramType == "HOTP") {
|
||||||
if (paramLabel != "" && paramKey != "" && paramCounter > 0)
|
if (paramLabel != "" && paramKey != "" && paramCounter > 0)
|
||||||
|
|
Loading…
Reference in a new issue