Fix TOTP url generation
This commit is contained in:
parent
efaf850cd9
commit
0c6dc783a9
|
@ -53,7 +53,7 @@ proc gen*(root: string, args: seq[string]) =
|
||||||
quit getCurrentExceptionMsg()
|
quit getCurrentExceptionMsg()
|
||||||
|
|
||||||
var
|
var
|
||||||
clienturl = parseURI "otpauth://totp/" / name / "?secret=" & encode res
|
clienturl = parseURI "otpauth://totp/" / name & "?secret=" & encode res
|
||||||
|
|
||||||
discard execShellCmd "qrencode -t ansiutf8 '" & $clienturl & "'"
|
discard execShellCmd "qrencode -t ansiutf8 '" & $clienturl & "'"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue