Skip to content
Snippets Groups Projects
Commit d47c3327 authored by Georg Ringer's avatar Georg Ringer Committed by Susanne Moog
Browse files

[BUGFIX] Hide password hash for RsaInputField

If rsauth is used, the eval configuration does not
contain the setting 'password' and the password can always
be hidden.

Resolves: #79576
Releases: master
Change-Id: Idcc8df67400be1d3f54e948681104ff9ad2d009e
Reviewed-on: https://review.typo3.org/51495


Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Tested-by: default avatarRiccardo De Contardi <erredeco@gmail.com>
Reviewed-by: default avatarMona Muzaffar <mona.muzaffar@gmx.de>
Tested-by: default avatarMona Muzaffar <mona.muzaffar@gmx.de>
Reviewed-by: default avatarSusanne Moog <susanne.moog@typo3.org>
Tested-by: default avatarSusanne Moog <susanne.moog@typo3.org>
parent 605b0c8d
Branches
Tags
No related merge requests found
......@@ -53,17 +53,13 @@ class RsaInputElement extends AbstractFormElement
$resultArray = $this->initializeResultArray();
$resultArray['requireJsModules'] = ['TYPO3/CMS/Rsaauth/RsaEncryptionModule'];
$itemValue = $parameterArray['itemFormElValue'];
$itemValue = $parameterArray['itemFormElValue'] ? '*********' : '';
$config = $parameterArray['fieldConf']['config'];
$size = MathUtility::forceIntegerInRange($config['size'] ?: $this->defaultInputWidth, $this->minimumInputWidth, $this->maxInputWidth);
$evalList = GeneralUtility::trimExplode(',', $config['eval'], true);
$width = (int)$this->formMaxWidth($size);
if ($config['readOnly']) {
// Early return for read only fields
if (in_array('password', $evalList, true)) {
$itemValue = $itemValue ? '*********' : '';
}
$html = [];
$html[] = '<div class="t3js-formengine-field-item">';
$html[] = '<div class="form-wizards-wrap">';
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment