diff --git a/C4/Auth.pm b/C4/Auth.pm index 57aa1a94dc..a62a13132b 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -1497,7 +1497,7 @@ sub check_api_auth { -HttpOnly => 1, -secure => ( C4::Context->https_enabled() ? 1 : 0 ), ); - return ( $return, undef, $session ); + return ( $return, $cookie, $session ); # return == 'ok' here } else {