https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33880 Bug ID: 33880 Summary: "Enable two-factor authentication" fails if patron's library branchname is too long Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Authentication Assignee: koha-bugs@lists.koha-community.org Reporter: pedro.amorim@ptfs-europe.com QA Contact: testopia@bugs.koha-community.org CC: dpavlin@rot13.org, jake.deery@ptfs-europe.com, jonathan.druart+koha@gmail.com, jonathan.field@ptfs-europe.com, m.de.rooy@rijksmuseum.nl, martin.renvoize@ptfs-europe.com, ryan.henderson@ptfs-europe.com Depends on: 32011 To reproduce, on ktd: 1) Enable TwoFactorAuthentication system preference 2) Go to "Administration->Libraries" edit the library's name "Institut Protestant de Théologie" to "Institut Protestant de Théologie and another word" 3) Go to "My account" in the top right corner menu 4) Click the "Edit" button in the "Library use" box and set the library to the above library 5) Go back to "My account" and click "More" button, select "Manage two-factor authentication" 6) Click "Enable two-factor authentication" button 7) It explodes Error logs: [ERROR] POST /api/v1/auth/two-factor/registration: unhandled exception (Mojo::Exception)<<Overflow error. version 10 total bits: 2036 max bits: 1728>> This is the same (or very similar) issue discussed in bug 32011 Bumping the version from 10 to something higher in GD::Barcode::new on Koha/Auth/TwoFactorAuth.pm works around this issue, but I think we should discuss and come up with a permanent solution. Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32011 [Bug 32011] 2FA - Problem with qr_code generation -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.