https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24861
Bug ID: 24861
Summary: Unable to setPatronPasswordPublic using REST API
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: REST API
Assignee: [email protected]
Reporter: [email protected]
I've tried POST /api/v1/public/patrons/{patron_id}/password with RESTPublicAPI
enabled (using koha-testing-docker with Plack enabled), but I keep getting 401
errors.
curl http://localhost:8080/api/v1/public/patrons/42/password -d
'{"old_password":"OLD","password":"NEW","password_repeated":"NEW"}'
{"error":"Authentication failure."}
With RESTBasicAuth enabled and using the username and password for patron #42:
curl -u <username:password>
http://localhost:8080/api/v1/public/patrons/42/password -d
'{"old_password":"OLD","password":"NEW","password_repeated":"NEW"}'
{"error":"Authorization failure. Missing required
permission(s).","required_permissions":null}
Perhaps I'm doing something wrong but this looks like a bug to me?
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
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/