Skip to content

Commit

Permalink
Merge pull request #2638 from phili67/phili67-ApplicationPrerequisite…
Browse files Browse the repository at this point in the history
…-signature-failed-missing

src/EcclesiaCRM/Service/AppIntegrityService.php : signature files mis…
  • Loading branch information
phili67 authored Sep 3, 2024
2 parents 7777bde + df5cf6b commit 3827009
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/EcclesiaCRM/Service/AppIntegrityService.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ public static function verifyApplicationIntegrity() : array
}
}
} else {
return ['status' => 'failure', 'message' => _('Signature definition file signature failed validation')];
return ['status' => 'failure', 'message' => _('Signature definition file signature failed validation'), 'files' => []];
}
} else {
return ['status' => 'failure', 'message' => _('Signature definition File Missing')];
return ['status' => 'failure', 'message' => _('Signature definition File Missing'), 'files' => []];
}

$pluginsIntegrity = AppIntegrityService::verifyPluginsIntegrity([]);
Expand Down Expand Up @@ -104,6 +104,7 @@ public static function getIntegrityCheckMessage(): string

public static function getFilesFailingIntegrityCheck(): array
{

if (AppIntegrityService::verifyApplicationIntegrity()['status'] === 'failure') {
return AppIntegrityService::verifyApplicationIntegrity()['files'];
}
Expand Down Expand Up @@ -139,10 +140,10 @@ public static function verifyPluginsIntegrity($signatureFailures = []): array
}
}
} else {
return ['status' => 'failure', 'message' => _('Signature definition file signature failed validation')];
return ['status' => 'failure', 'message' => _('Signature definition file signature failed validation'), 'files' => []];
}
} else {
return ['status' => 'failure', 'message' => _('Signature definition File Missing')];
return ['status' => 'failure', 'message' => _('Signature definition File Missing'), 'files' => []];
}
}
}
Expand Down

0 comments on commit 3827009

Please sign in to comment.