aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/auth/provider/oauth/oauth.php
diff options
context:
space:
mode:
authorJakub Senko <jakubsenko@gmail.com>2018-01-23 11:08:46 +0100
committerJakub Senko <jakubsenko@gmail.com>2018-01-27 15:40:52 +0100
commit82adb1f4f54fa6d1ab299186956c046b20f7f195 (patch)
treec2a4ac8b604663111e3e857fa0645145dca21703 /phpBB/phpbb/auth/provider/oauth/oauth.php
parentd0143bec8830e709047443f73f79c0dce438e3fc (diff)
downloadforums-82adb1f4f54fa6d1ab299186956c046b20f7f195.tar
forums-82adb1f4f54fa6d1ab299186956c046b20f7f195.tar.gz
forums-82adb1f4f54fa6d1ab299186956c046b20f7f195.tar.bz2
forums-82adb1f4f54fa6d1ab299186956c046b20f7f195.tar.xz
forums-82adb1f4f54fa6d1ab299186956c046b20f7f195.zip
[ticket/15398] Add core.oauth_login_after_check_if_provider_id_has_match
PHPBB3-15398
Diffstat (limited to 'phpBB/phpbb/auth/provider/oauth/oauth.php')
-rw-r--r--phpBB/phpbb/auth/provider/oauth/oauth.php16
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