mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge branch '3.2.x'
This commit is contained in:
commit
0e6a293e2c
1 changed files with 16 additions and 0 deletions
|
@ -227,6 +227,22 @@ class oauth extends \phpbb\auth\provider\base
|
||||||
$row = $this->db->sql_fetchrow($result);
|
$row = $this->db->sql_fetchrow($result);
|
||||||
$this->db->sql_freeresult($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)
|
if (!$row)
|
||||||
{
|
{
|
||||||
// The user does not yet exist, ask to link or create profile
|
// The user does not yet exist, ask to link or create profile
|
||||||
|
|
Loading…
Add table
Reference in a new issue