mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-31 10:50:00 -04: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)