feat(db): add SetSubsonicPassword query

Allows setting or clearing the opt-in Subsonic legacy credential.
This commit is contained in:
2026-04-19 17:37:18 +00:00
parent b5bf0cc9d6
commit bc22ec9a91
+5
View File
@@ -11,3 +11,8 @@ SELECT * FROM users WHERE api_token = $1;
-- name: CountUsers :one
SELECT count(*) FROM users;
-- name: SetSubsonicPassword :exec
-- Stores (or clears with NULL) the per-user Subsonic legacy credential used
-- for t/s and p auth on /rest/*. Must be plaintext; see migration 0003.
UPDATE users SET subsonic_password = $2 WHERE id = $1;