Koha-clms/Koha/REST
Jonathan Druart 2dd06e9409 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: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2022-01-26 04:18:46 +00:00
..
Plugin Bug 23653: [19.11] Remove uneeded cond test 2021-07-08 01:33:52 +00:00
V1 Bug 29914: Make check_cookie_auth compare the userid 2022-01-26 04:18:46 +00:00
V1.pm Bug 23653: [19.11] use local copy of swagger v2 schema 2021-07-08 01:33:52 +00:00