Skip to content

Commit

Permalink
Merge pull request #90 from Tlapi/master
Browse files Browse the repository at this point in the history
Trigger register.post event after inserting new user-to-provider
  • Loading branch information
SocalNick committed Jul 29, 2013
2 parents 3419173 + 0864007 commit d8e1f95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ScnSocialAuth/Authentication/Adapter/HybridAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ public function authenticate(AuthEvent $authEvent)
->setProviderId($userProfile->identifier)
->setProvider($provider);
$this->getMapper()->insert($localUserProvider);

// Trigger register.post event
$this->getEventManager()->trigger('register.post', $this, array('user' => $localUser, 'userProvider' => $localUserProvider));
}

$zfcUserOptions = $this->getZfcUserOptions();
Expand Down

0 comments on commit d8e1f95

Please sign in to comment.