Skip to content

Commit

Permalink
added TODO message for non-standard reply on helper
Browse files Browse the repository at this point in the history
  • Loading branch information
s3inlc committed Feb 21, 2024
1 parent 422e940 commit 3163f6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/inc/apiv2/helper/importCrackedHashes.routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function actionPost($data): array|null {

$result = HashlistUtils::processZap($hashlist->getId(), $data["separator"], "paste", ["hashfield" => $data["sourceData"]], [], $this->getCurrentUser());

# TODO: Check how to handle custom return messages that are not object, probably we want that to be in some kind of standardized form.
return [
"totalLines" => $result[0],
"newCracked" => $result[1],
Expand Down

0 comments on commit 3163f6d

Please sign in to comment.