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.