[Koha-bugs] [Bug 33880] "Enable two-factor authentication" fails if patron's library branchname is too long

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 2 15:16:01 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33880

--- Comment #7 from Pedro Amorim <pedro.amorim at ptfs-europe.com> ---
Created attachment 151981
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=151981&action=edit
Bug 33880: Remove Version param from GB::Barcode->new

Looking at the code here
     if (Koha/Auth/TwoFactorAuth.pmoSelf->{Version}){        #--- auto version
select
        for(->{Version}=1; ->{Version} <= 40; ++->{Version}) {
            last if ({->{Ecc}}->[->{Version}]
                        >=  + ->[->{Version}]);
        }
   }

in
https://metacpan.org/release/KWITKNR/GD-Barcode-1.15/source/Barcode/QRcode.pm#L349

It appears the version parameter is not required, and will default to whatever
version has the necessary bits for the input words given

Signed-off-by: Pedro Amorim <pedro.amorim at ptfs-europe.com>

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list