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

--- Comment #8 from David Nind <[email protected]> ---
I attempted to test, but wasn't able to enable 2Fa for the patron:

1. Applied the patches and restarted everything.
2. Enabled TwoFactorAuthentication system preference.
3. For Henry, set a password and added some permissions (didn't make
superlibrarian).
4. Logged in as Henry
5. Went to [Henry's] My account > More > Manage two-factor authentication
6. Get "Error: You don't have permission to access this page."

So, can't seem to enable 2FA for a staff user.

Also having trouble setting 2FA for the koha user:
1. My account > More > Manage two-factor authentication
2. Scan code with app
3. Enter code from app
4. Get Error 404 page
5. Messages in logs

172.18.0.1 - - [01/Sep/2025:02:39:06 +0000] "POST
/api/v1/app.pl/api/v1/auth/two-factor/registration/verification HTTP/1.1" 204 -
"http://127.0.0.1:8081/cgi-bin/koha/members/two_factor_auth.pl?borrowernumber=51";
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/139.0.0.0 Safari/537.36"
172.18.0.1 - - [01/Sep/2025:02:39:06 +0000] "GET
/intranet/members/two_factor_auth.pl HTTP/1.1" 302 0
"http://127.0.0.1:8081/cgi-bin/koha/members/two_factor_auth.pl?borrowernumber=51";
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/139.0.0.0 Safari/537.36"
172.18.0.1 - - [01/Sep/2025:02:39:07 +0000] "GET errors/404.pl HTTP/1.1" 404
36495
"http://127.0.0.1:8081/cgi-bin/koha/members/two_factor_auth.pl?borrowernumber=51";
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/139.0.0.0 Safari/537.36"

6. 2FA is actually enabled - log in prompts for code, and log in works.

So, possibly something I'm doing wrong.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to