zoneminder/web/includes/actions
Isaac Connor 84492f29b1
Fix token auth sessions (#2676)
* If token is present do token based auth and do not do anything with session

* update HostController.  Use config constants, don't use sessions

* Remove Session from the components list

* spacing

* Remove Session from App Components list.

* Move APIEnabled check to the api from auth.php

* Rework auth.  login using username and password only occurs on login action now.  Including auth.php should not touch the session.  auth_hash logins no longer touch the session.  replace userLogin with a function called validateUser which matches the semantics of validateToken.

* remove debugging

* Add session storage if stateful query param is on, but only for LEGACY_API_AUTH

* fix mUser to username, etc.

* shuffle lines

* use  instead of session when generating auth hash.

* Add docs regarding the use of cookies and stateful query param

* Only open/close session if we are clearing a session var

* Use zm_session_start instead of session_start

* Should use zm_session_start instead of session_start

* document that zm_session_start should be called previously to session_regenerate_id

* Don't actually write out the session when generating auth hashes.  Means they should never actually persist.

* More backticking of SQL

* add .. to fix #2686

* Use material icons for sort because they look nicer

* fix typo

* have to add authhash to session on login

* restore username&password login for all urls

* fix

* fixes
2019-08-20 09:46:53 -04:00
..
bandwidth.php bandwidth.php: Submit to the 'bandwidth' view but render the 'none' view. Fixes #2493 2019-02-10 13:22:08 -08:00
console.php Php namespace (#2537) 2019-02-22 09:19:07 -05:00
control.php Fix control presets 2019-03-01 13:37:34 -05:00
controlcap.php Php namespace (#2537) 2019-02-22 09:19:07 -05:00
controlcaps.php Php namespace (#2537) 2019-02-22 09:19:07 -05:00
device.php Php namespace (#2537) 2019-02-22 09:19:07 -05:00
devices.php Php namespace (#2537) 2019-02-22 09:19:07 -05:00
donate.php update and fix the donate popup 2019-03-05 13:10:04 -05:00
event.php Php namespace (#2537) 2019-02-22 09:19:07 -05:00
eventdetail.php Php namespace (#2537) 2019-02-22 09:19:07 -05:00
events.php Merge fix from storageareas for archive/delete in events list 2019-02-26 10:22:58 -05:00
filter.php quotes 2019-08-08 09:26:15 -04:00
function.php Php namespace (#2537) 2019-02-22 09:19:07 -05:00
group.php Php namespace (#2537) 2019-02-22 09:19:07 -05:00
groups.php Php namespace (#2537) 2019-02-22 09:19:07 -05:00
login.php Fix token auth sessions (#2676) 2019-08-20 09:46:53 -04:00
logout.php Fix token auth sessions (#2676) 2019-08-20 09:46:53 -04:00
monitor.php comment out debug lines 2019-05-31 10:35:54 -04:00
monitors.php Fix saving multiple monitors at once by moving the relevant code to includes/actions/monitors.php 2019-03-05 11:02:37 -05:00
montage.php fix namespace on MontageLayout 2019-03-22 17:27:58 -04:00
options.php write a note why regnerateAuthHash doesn't work when saving config 2019-06-04 16:30:57 -04:00
privacy.php get rid of js that just does the form submit. Upgrade the button from an input to a button. Use 0 and 1 instead of accept and decline, which allows us to pre-select the current value of ZM_TELEMETRY_DATA. So that if you had previously declined, you won't accidentally accept. This fixes the reported error that choosing decline would cause the setting to not be saved and the privacy popup to happen again. (#2534) 2019-02-22 09:20:54 -05:00
server.php Php namespace (#2537) 2019-02-22 09:19:07 -05:00
settings.php Php namespace (#2537) 2019-02-22 09:19:07 -05:00
shutdown.php Introduce ZM_PATH_SHUTDOWN to cmake config 2019-05-27 12:09:32 -04:00
state.php Php namespace (#2537) 2019-02-22 09:19:07 -05:00
storage.php Php namespace (#2537) 2019-02-22 09:19:07 -05:00
user.php remove a password log, corrected PHP version in log (#2627) 2019-06-16 11:59:48 -04:00
version.php Php namespace (#2537) 2019-02-22 09:19:07 -05:00
zone.php Update Zone buttons. Fix double submit. Fixes #2671 2019-08-02 08:04:38 -04:00
zones.php Php namespace (#2537) 2019-02-22 09:19:07 -05:00