Commit dd0c8301 authored by Jochen Roth's avatar Jochen Roth Committed by Georg Ringer
Browse files

[BUGFIX] Set fe_user email field to eval "email"

Currently the fe_user field email has a eval value
of "trim". So it does not verify the given email.

This has been fixed by setting eval to "email" and
trim the email before validation. On top of that
the validation flash message now shows the correct
value that was entered.

Resolves: #95459
Releases: master
Change-Id: I274ae040da9fe8d03a56e5ba9b4f17a828da57f7
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71483

Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
parent 768bd1cd
......@@ -2726,7 +2726,7 @@ class DataHandler implements LoggerAwareInterface
SystemLogDatabaseAction::UPDATE,
0,
SystemLogErrorClassification::SECURITY_NOTICE,
'"%s" is not a valid e-mail address.',
'"' . $value . '" is not a valid e-mail address.',
-1,
[$this->getLanguageService()->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:error.invalidEmail'), $value]
);
......
......@@ -128,7 +128,7 @@ return [
'config' => [
'type' => 'input',
'size' => 20,
'eval' => 'trim',
'eval' => 'trim,email',
'max' => 255,
],
],
......
Supports Markdown
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