Skip to content

Commit

Permalink
[ticket/15398] Add core.oauth_login_after_check_if_provider_id_has_match
Browse files Browse the repository at this point in the history
PHPBB3-15398
  • Loading branch information
senky committed Jan 27, 2018
1 parent d0143be commit 82adb1f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions phpBB/phpbb/auth/provider/oauth/oauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,22 @@ public function login($username, $password)
$row = $this->db->sql_fetchrow($result);
$this->db->sql_freeresult($result);

/**
* Event is triggered before check if provider is already associated with an account
*
* @event core.oauth_login_after_check_if_provider_id_has_match
* @var array row User row
* @var array data Provider data
* @var \OAuth\Common\Service\ServiceInterface service OAuth service
* @since 3.2.3-RC1
*/
$vars = array(
'row',
'data',
'service',
);
extract($this->dispatcher->trigger_event('core.oauth_login_after_check_if_provider_id_has_match', compact($vars)));

if (!$row)
{
// The user does not yet exist, ask to link or create profile
Expand Down

0 comments on commit 82adb1f

Please sign in to comment.