Skip to content

Commit 82adb1f

Browse files
committed
[ticket/15398] Add core.oauth_login_after_check_if_provider_id_has_match
PHPBB3-15398
1 parent d0143be commit 82adb1f

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

phpBB/phpbb/auth/provider/oauth/oauth.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,22 @@ public function login($username, $password)
227227
$row = $this->db->sql_fetchrow($result);
228228
$this->db->sql_freeresult($result);
229229

230+
/**
231+
* Event is triggered before check if provider is already associated with an account
232+
*
233+
* @event core.oauth_login_after_check_if_provider_id_has_match
234+
* @var array row User row
235+
* @var array data Provider data
236+
* @var \OAuth\Common\Service\ServiceInterface service OAuth service
237+
* @since 3.2.3-RC1
238+
*/
239+
$vars = array(
240+
'row',
241+
'data',
242+
'service',
243+
);
244+
extract($this->dispatcher->trigger_event('core.oauth_login_after_check_if_provider_id_has_match', compact($vars)));
245+
230246
if (!$row)
231247
{
232248
// The user does not yet exist, ask to link or create profile

0 commit comments

Comments
 (0)