- Issue created by @gulfam_drupal
- Merge request !23LoginEvent should not be triggered at all if user registration failed. → (Open) created by gulfam_drupal
Code in reference
$redirect = $this->userAuthenticator->authenticateUser($social_auth_user);
$event = new LoginEvent($this->currentUser(), $social_auth_user, $this->pluginId);
If for whatever reason authenticateUser fails (when trying to create account it fails some validation), LoginEvent is still triggered.
Don't call LoginEvent and code after if authenticateUser fails
Active
4.1
Code