Error out if used did not create an AUTH_HASH_SECRET

pull/2616/head
Pliable Pixels 2019-05-08 14:26:16 -04:00
parent f9730bb46b
commit 0bc96dfe83
1 changed files with 3 additions and 1 deletions

View File

@ -90,8 +90,10 @@ class HostController extends AppController {
require_once __DIR__ .'/../../../includes/auth.php';
require_once __DIR__.'/../../../vendor/autoload.php';
$key = ZM_AUTH_HASH_SECRET;
if (!$key) {
throw new ForbiddenException(__('Please create a valid AUTH_HASH_SECRET in ZoneMinder'));
}
/* we won't support AUTH_HASH_IPS in token mode
reasons: