mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-11-03 03:04:29 -05:00
When ZM_AUTH_HASH_SECRET is unusable zmu refuses tokens, so zmuCredentials() falls back to what zmu got before. With ZM_AUTH_RELAY=plain the API's alarm action used to pass the password from the request (pass= or password=); the fallback read only the session, which an API call without a stateful login doesn't have, so zmu refused the call (rc 255). zmuCredentials() takes the caller's password first again. With a usable secret it is never used. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 5ca19c2703ea9211fe040991305ce9b0a873faff)
ZoneMinder API
This is the ZoneMinder API. It should be, for now, installed under the webroot e.g. /api.
app/Config/database.php.default must be configured and copied to app/Config/database.php
In addition, Security.salt and Security.cipherSeed in app/Config/core.php should be changed.
The API can run on a dedicated / separate instance, so long as it can access the database as configured in app/Config/database.php