From 1134ee73e08f66dadba3c02776ae368ac2e1a9a8 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Tue, 18 Jan 2022 15:11:19 +0000 Subject: [PATCH] Bug 29873: Adjust QR image size Content-Type: text/plain; charset=utf-8 Size parameter 8 results in too big images. Size parameter 4 seems fine. Although I have seen variations in the number of pixels from about 116x116 to 180x180. The documentation is a bit obsure. Test plan: Register again with smaller QR code and logout/login. --- Koha/Auth/TwoFactorAuth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Auth/TwoFactorAuth.pm b/Koha/Auth/TwoFactorAuth.pm index 8d61d91f85..2dccdbb608 100644 --- a/Koha/Auth/TwoFactorAuth.pm +++ b/Koha/Auth/TwoFactorAuth.pm @@ -78,7 +78,7 @@ sub qr_dataurl { my $otpauth = $self->qr_code( undef, undef, undef, 1); # no need to pass secret, key and issuer again my $qrcode = Imager::QRCode->new({ - size => 8, # 200 x 200 + size => 4, margin => 2, version => 1, level => 'M', -- 2.20.1