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. Gerrit Code Review pushed patch set 1 for main to change 80918 status New Under Review 09/07/23, 12:09

  2. Gerrit Code Review pushed patch set 1 for 12.4 to change 87374 12/05/24, 11:57

  3. Anonymous commented and changed status Under Review Resolved done 0 % 100 % 01/23/25, 09:20

    Applied in changeset commit:afd9a3be7706862ae1feaa35c811cc95567187fd.

  4. Benni Mack changed status Resolved Closed 12/02/25, 14:37