Skip to content

Commit

Permalink
Auth: Don't transform login form password
Browse files Browse the repository at this point in the history
See: https://mantis.ilias.de/view.php?id=42097
(cherry picked from commit 13bd243)
  • Loading branch information
mjansenDatabay committed Sep 25, 2024
1 parent 4f30493 commit 9b3eea1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/ILIAS/Init/classes/class.ilStartUpGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,12 @@ private function mergeValuesTrafo(): ILIAS\Refinery\Transformation
private function saniziteArrayElementsTrafo(): ILIAS\Refinery\Transformation
{
return $this->refinery->custom()->transformation(static function (array $values): array {
return ilArrayUtil::stripSlashesRecursive($values);
$processed_values = array_merge(
ilArrayUtil::stripSlashesRecursive($values),
isset($values[self::PROP_PASSWORD]) ? [self::PROP_PASSWORD => $values[self::PROP_PASSWORD]] : []
);

return $processed_values;
});
}

Expand Down

0 comments on commit 9b3eea1

Please sign in to comment.