Feature: #105624 - PSR-14 event after a Backend user password has been reset
See forge#105624
Description
A new PSR-14 event
\TYPO3\
has been introduced which is raised right after a Backend user reset their password
and it has been hashed and persisted to the database.
The event contains the corresponding Backend user UID.
Example
The corresponding event listener class:
<?php
namespace Vendor\MyPackage\Backend\EventListener;
use TYPO3\CMS\Backend\Authentication\Event\PasswordHasBeenResetEvent;
use TYPO3\CMS\Core\Attribute\AsEventListener;
final class PasswordHasBeenResetEventListener
{
#[AsEventListener('my-package/backend/password-has-been-reset')]
public function __invoke(PasswordHasBeenResetEvent $event): void
{
$userUid = $event->userUid;
// Do something with the be_user UID
}
}
Copied!
Impact
It's now possible to add custom business logic after a Backend user reset their
password using the new PSR-14 event
Password
.