From 7aa8d9ff338d397660d726d6828a98fff3fb7c7f Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sat, 27 Jul 2019 02:35:41 +0200 Subject: [PATCH] Include accountname in totp url --- fetch-totp-seed.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch-totp-seed.cgi b/fetch-totp-seed.cgi index 98ed798..3bcc447 100644 --- a/fetch-totp-seed.cgi +++ b/fetch-totp-seed.cgi @@ -33,7 +33,7 @@ my $seed = encode_base32(pack('H*', $hex_seed)); close $fh; #unlink $filename; -my $totpurl = "otpauth://totp/Debian?secret=$seed&issuer=Debian"; +my $totpurl = "otpauth://totp/Debian:$accountname?secret=$seed&issuer=Debian"; my $totppng = "data:image/png;base64, " . encode_base64(GD::Barcode::QRcode->new($totpurl, { ModuleSize => 10 })->plot->png); -- 2.20.1