Merge branch 'master' into swresample
This commit is contained in:
commit
d4fb85a9aa
|
@ -21,7 +21,7 @@ server {
|
|||
|
||||
include /etc/nginx/fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||
fastcgi_pass unix:/run/fcgiwrap.sock;
|
||||
fastcgi_pass unix:/run/fcgiwrap/fcgiwrap-nginx.sock;
|
||||
}
|
||||
|
||||
location /zm/cache {
|
||||
|
|
|
@ -146,13 +146,8 @@ Upgrades
|
|||
See step 6 of the installation section if you have not already done this
|
||||
during a previous upgrade.
|
||||
|
||||
<<<<<<< HEAD
|
||||
If this step is not performed correctly, the web console will appear
|
||||
mostly empty and/or significantly corrupted post-upgrade.
|
||||
=======
|
||||
IMPORTANT: Failure to complete this step properly will result in a mostly
|
||||
empty or significantly corrupted web console post-upgrade.
|
||||
>>>>>>> 5b211d250910918782d20bf32b0e33a38a0df4dd
|
||||
|
||||
4. Upgrade the database before starting ZoneMinder.
|
||||
|
||||
|
|
|
@ -71,7 +71,8 @@ class HostController extends AppController {
|
|||
$zmAuthRelay = $this->Config->find('first',array('conditions' => array('Config.' . $this->Config->primaryKey => 'ZM_AUTH_RELAY')))['Config']['Value'];
|
||||
if ( $zmAuthRelay == 'hashed' ) {
|
||||
$zmAuthHashIps = $this->Config->find('first',array('conditions' => array('Config.' . $this->Config->primaryKey => 'ZM_AUTH_HASH_IPS')))['Config']['Value'];
|
||||
$credentials = 'auth='.generateAuthHash($zmAuthHashIps);
|
||||
// make sure auth is regenerated each time we call this API
|
||||
$credentials = 'auth='.generateAuthHash($zmAuthHashIps,true);
|
||||
} else {
|
||||
// user will need to append the store password here
|
||||
$credentials = 'user='.$this->Session->read('user.Username').'&pass=';
|
||||
|
|
Loading…
Reference in New Issue