mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 22:46:02 -05:00
[jsonapi] spotify token leak
This commit is contained in:
parent
646dd44dd9
commit
3049b3e70e
@ -1110,7 +1110,7 @@ jsonapi_reply_spotify(struct httpd_request *hreq)
|
|||||||
spotifywebapi_access_token_get(&webapi_token);
|
spotifywebapi_access_token_get(&webapi_token);
|
||||||
safe_json_add_string(jreply, "webapi_token", webapi_token.token);
|
safe_json_add_string(jreply, "webapi_token", webapi_token.token);
|
||||||
json_object_object_add(jreply, "webapi_token_expires_in", json_object_new_int(webapi_token.expires_in));
|
json_object_object_add(jreply, "webapi_token_expires_in", json_object_new_int(webapi_token.expires_in));
|
||||||
|
free(webapi_token.token);
|
||||||
#else
|
#else
|
||||||
json_object_object_add(jreply, "enabled", json_object_new_boolean(false));
|
json_object_object_add(jreply, "enabled", json_object_new_boolean(false));
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user