zoneminder/web/api/app/Controller
Matt N 33092e4022 Allow API authentication using the `auth` query parameter containing an auth. hash. (#1845)
* Allow API authentication using the `auth` query parameter containing an auth. hash.

Fixes #1827

The same auth. hash for zms is used here. This allows consumers to use the API without sending the password in the query string and not require forging logins via the login form.

* Move logger.php's global Debug function to Logger::Debug to avoid polluting globals

This avoids a conflict with CakePHP when logger.php gets included indrectly from API code.

* Protect action=login when ZM_ENABLE_CSRF_MAGIC is enabled
2017-05-15 21:51:48 -04:00
..
Component remove unneeded, empty files 2016-12-26 09:49:14 -06:00
AppController.php Allow API authentication using the `auth` query parameter containing an auth. hash. (#1845) 2017-05-15 21:51:48 -04:00
ConfigsController.php PP - Gone,flitted away, Taken the starts from the night and sun, From the day! Gone, and a cloud in my heart. - Tennyson 2015-12-19 18:36:38 -05:00
ControlsController.php Merged Angular UI branch API to master 2015-06-11 02:58:58 +00:00
EventsController.php switched to named param format, more flexible, in line with other APIs 2016-05-07 16:28:25 -04:00
FramesController.php Moved the api to underneath the web directory 2014-04-29 20:41:04 +00:00
HostController.php added TimeZone get API 2016-10-18 14:07:31 -04:00
LogsController.php Merged Angular UI branch API to master 2015-06-11 02:58:58 +00:00
MonitorsController.php implement suggested code to stop the monitor when Function is set to None 2016-09-01 11:43:20 -04:00
PagesController.php Moved the api to underneath the web directory 2014-04-29 20:41:04 +00:00
ServersController.php change permissions to stream permissions for view 2016-05-02 19:48:24 -04:00
StatesController.php address issue #1335 2016-03-12 08:07:25 -05:00
ZonePresetsController.php Merged Angular UI branch API to master 2015-06-11 02:58:58 +00:00
ZonesController.php retab 2016-09-03 15:02:32 -04:00