[TASK] Remove IP address from details field of sys_log entry 13/57313/9
authorGeorg Ringer <georg.ringer@gmail.com>
Fri, 22 Jun 2018 20:40:35 +0000 (22:40 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sat, 23 Jun 2018 10:03:07 +0000 (12:03 +0200)
commitdfbd98738b4edb77502c09f1ad6951d36134dcd3
tree275b06b85897e1f153a240442aba512ac8c1435a
parent1b869d7a21ba82b9edde21f7ff4be7019724bffa
[TASK] Remove IP address from details field of sys_log entry

Avoid persisting the IP address of a login action twice and just use
the one of the IP field.

Additionally the anoymize scheduler task can now remove all unwanted IP
addresses from the logs.

Be aware that the anonymization of the sys_log entries only
works for new entries that were generated after this patch. Older
entries have to be deleted or the details field needs to be
cleared manually.

Resolves: #85316
Releases: master, 8.7, 7.6
Change-Id: I9c5c65d52462a82047324390bc3e6b970a8f8840
Reviewed-on: https://review.typo3.org/57313
Reviewed-by: Andreas Wolf <andreas.wolf@typo3.org>
Tested-by: Andreas Wolf <andreas.wolf@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/belog/Classes/Domain/Model/LogEntry.php
typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php
typo3/sysext/core/Classes/Authentication/AuthenticationService.php
typo3/sysext/saltedpasswords/Classes/SaltedPasswordService.php
typo3/sysext/scheduler/Classes/Task/IpAnonymizationAdditionalFieldProvider.php