Skip to content

Commit

Permalink
Do NOT store password in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Jun 13, 2024
1 parent 54e2f86 commit e85ac29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/GaletteOAuth2/Tools/Debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ public static function logRequest($fct, $request): void
$msg .= "\nGET dump: " . self::printVar($qp);
}
if (count($post = (array)$request->getParsedBody()) > 0) {
if (isset($post['password'])) {
$post['password'] = 'HIDDEN';
}
$msg .= "\nPOST dump: " . self::printVar($post);
}
$msg .= "\n";
Expand Down

0 comments on commit e85ac29

Please sign in to comment.