1
0
Fork 0
mirror of https://github.com/seiichiro0185/sailotp.git synced 2024-12-22 11:42:30 +00:00

Include Length in Generated QR-Code

This commit is contained in:
seiichiro 2016-07-17 19:33:12 +02:00
parent 7caade42be
commit 8338ca6d73

View file

@ -62,7 +62,7 @@ Page {
var otpurl = "";
if (paramType == "TOTP") {
if (paramLabel != "" && paramKey != "")
otpurl = "otpauth://totp/"+paramLabel+"?secret="+paramKey;
otpurl = "otpauth://totp/"+paramLabel+"?secret="+paramKey+"&digits="+paramLen;
} else if (paramType == "HOTP") {
if (paramLabel != "" && paramKey != "" && paramCounter > 0)