Skip to content

Commit

Permalink
Merge pull request #206 from diogodomanski/master
Browse files Browse the repository at this point in the history
- Added register.pre event trigger
  • Loading branch information
SocalNick committed May 19, 2015
2 parents c829804 + 99cba63 commit 54d0bb8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ScnSocialAuth/Authentication/Adapter/HybridAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ public function authenticate(AuthEvent $authEvent)
$localUserProvider->setUserId($localUser->getId())
->setProviderId($userProfile->identifier)
->setProvider($provider);

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

$this->getMapper()->insert($localUserProvider);

// Trigger register.post event
Expand Down

0 comments on commit 54d0bb8

Please sign in to comment.