Koha-clms/Koha/REST/V1
Jonathan Druart 3ae3b6a186 Bug 29914: Make check_cookie_auth compare the userid
check_cookie_auth is assuming that the user is authenticated if a cookie exists
and that the login/username exists in the DB.

So basically if you hit the login page, fill the login input with a
valid username, click "login"
=> A cookie will be generated, and the sessions table will contain a
line with this session id.
On the second hit, if the username is in the DB, it will be enough to be
considered authenticated.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 7114dc2fb1)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
(cherry picked from commit be18dc19b8e84919416eab5cd43f4ed345fc280a)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
2022-01-27 20:33:39 +00:00
..
Acquisitions Bug 20212: Filter on publisher and notes 2021-01-28 16:44:48 +01:00
CashRegisters Bug 26274: Add cashups api routes 2021-02-12 12:33:41 +01:00
Clubs Bug 27593: Consistent behavior for club holds route 2021-02-23 13:16:07 +01:00
Config/SMTP Bug 22343: API routes for SMTP servers CRUD 2020-10-02 10:54:40 +02:00
Patrons Bug 29272: (QA follow-up) Category setup overrides syspref 2021-10-29 11:47:39 -04:00
AdvancedEditorMacro.pm Bug 25502: Adapt Advanced macros routes to current guidelines 2020-05-19 15:21:16 +01:00
Auth.pm Bug 29914: Make check_cookie_auth compare the userid 2022-01-27 20:33:39 +00:00
Biblios.pm Bug 28604: Prevent double encoding of MARC::Record::MiJ->to_mij output 2021-07-09 10:29:57 -04:00
Checkouts.pm Bug 27544: Simplify GET /checkouts implementation 2021-01-28 16:41:20 +01:00
CirculationRules.pm Bug 18936: (QA follow-up) Add missing POD 2020-02-04 09:56:30 +00:00
Cities.pm Bug 25048: Make successful resource deletion return 204 2020-04-29 16:24:43 +01:00
Holds.pm Bug 28369: Set additionalProperties: false and fix things 2021-05-25 09:28:18 +02:00
Illbackends.pm Bug 22615: Fix perlcritic 2020-03-05 13:03:46 +00:00
Illrequests.pm Bug 29032: Pre-load ILL backends to speed up response 2021-10-01 14:25:57 -04:00
ImportBatchProfiles.pm Bug 23019: (follow-up) Fix other things 2020-11-11 15:55:49 +01:00
Items.pm Bug 27931: Add GET /items/:item_id/pickup_locations 2021-06-18 08:44:45 -04:00
Libraries.pm Bug 25032: Make existing controllers use unhandled_exception 2020-04-29 16:24:18 +01:00
OAuth.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Patrons.pm Bug 29508: Make GET /patrons/:patron_id use Koha::Patrons->search_limited 2022-01-11 22:02:31 +00:00
Quotes.pm Bug 27251: Rewrite QOTD with the Koha REST API 2021-01-29 09:03:45 +01:00
ReturnClaims.pm Bug 28586: (follow-up) updated_by should be set 2021-06-24 10:07:26 -04:00
Stage.pm Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
Static.pm Bug 27179: Misspelling of Method in REST API files 2021-01-22 14:59:27 +01:00
Suggestions.pm Bug 17314: Implement /suggestions routes 2021-11-02 08:42:22 -04:00
TransferLimits.pm Bug 26633: (QA follow-up) Tests on error condition 2021-03-16 16:08:30 +01:00