do not add provider without salt

This commit is contained in:
Sebastian 2022-06-03 12:18:45 -03:00
parent 78b5518185
commit 8e9bca396e
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -301,6 +301,13 @@ async function getProviderInfo(
} }
try { try {
const jsonResp: EscrowConfigurationResponse = await resp.json(); const jsonResp: EscrowConfigurationResponse = await resp.json();
if (!jsonResp.provider_salt) {
return {
status: "error",
code: TalerErrorCode.ANASTASIS_REDUCER_PROVIDER_CONFIG_FAILED,
hint: "provider did not have provider salt",
}
}
return { return {
status: "ok", status: "ok",
http_status: 200, http_status: 200,