You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the mail validation fails, there is an exception because in validateUser in the else branch of the instanceof if,
this is called $this->handleBehaviorResponse($this->doBehaviors($frontendUser, 'emailValidationFailure', $forward), $frontendUser);
However, handleBehaviorResponse expects $frontendUser to be of a correct type and therefore an exception is thrown.
Best would be to create a frontendUser before calling handleBehaviorResponse.
The text was updated successfully, but these errors were encountered:
what needs to also be mentioned is that, of course, this issue also needs to be addressed for behaviors and decorators as those are also called with a forced type.
It's odd that behaviors or decorators are being called at all on an invalid frontendUser object. Those should only be called if the frontendUser has already been created. Can you provide me with a clear set of steps to reproduce the problem?
Not, if I am using emailValidationFailure - there I want to use behaviors that are called on error, e.g. to add a flash message (which works fine without a valid frontend user)
If the mail validation fails, there is an exception because in validateUser in the else branch of the instanceof if,
this is called $this->handleBehaviorResponse($this->doBehaviors($frontendUser, 'emailValidationFailure', $forward), $frontendUser);
However, handleBehaviorResponse expects $frontendUser to be of a correct type and therefore an exception is thrown.
Best would be to create a frontendUser before calling handleBehaviorResponse.
The text was updated successfully, but these errors were encountered: