Issue Bug Closed

#101873With FeLogin using event PasswordChangeEvent and stop propagation with setAsInvalid() no error message is displayed

Florian Rival 09/07/23, 11:59 updated 12/02/25, 14:37

Description

How to reproduce :
  • add a listener for event PasswordChangeEvent
  • In the listener set
public function __invoke(PasswordChangeEvent $event): void
{
   $event->setAsInvalid('My error message');
}
  • Insert FeLogin on a page and try to change password

The propagation is stopped and the process is redirected to action showChangePassword() but the error message ‘My error message’ is not displayed

Reviews 2

History 24

  1. Anonymous commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-01-23T09:20:13+00:00" > 01/23/25, 09:20 </span>

    Applied in changeset commit:afd9a3be7706862ae1feaa35c811cc95567187fd.