diff options
author | Marc Alexander <admin@m-a-styles.de> | 2018-02-18 17:10:22 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2018-02-18 17:10:22 +0100 |
commit | 07930c09179b077f141885ff0bf13f00a13ccefa (patch) | |
tree | 3cb300e8ece1edae36a3a3d788b685debae1b644 /phpBB | |
parent | 7dca3f4d6c22db2682220309a21362d943e4265e (diff) | |
parent | 82adb1f4f54fa6d1ab299186956c046b20f7f195 (diff) | |
download | forums-07930c09179b077f141885ff0bf13f00a13ccefa.tar forums-07930c09179b077f141885ff0bf13f00a13ccefa.tar.gz forums-07930c09179b077f141885ff0bf13f00a13ccefa.tar.bz2 forums-07930c09179b077f141885ff0bf13f00a13ccefa.tar.xz forums-07930c09179b077f141885ff0bf13f00a13ccefa.zip |
Merge pull request #5105 from senky/ticket/15398
[ticket/15398] Add core.oauth_login_after_check_if_provider_id_has_match
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/phpbb/auth/provider/oauth/oauth.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/phpBB/phpbb/auth/provider/oauth/oauth.php b/phpBB/phpbb/auth/provider/oauth/oauth.php index 5587e69d3c..8809a0c6b4 100644 --- a/phpBB/phpbb/auth/provider/oauth/oauth.php +++ b/phpBB/phpbb/auth/provider/oauth/oauth.php @@ -227,6 +227,22 @@ class oauth extends \phpbb\auth\provider\base $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 |