aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoseph Warner <hardolaf@hardolaf.com>2013-08-14 16:20:47 -0400
committerJoseph Warner <hardolaf@hardolaf.com>2013-08-14 16:21:06 -0400
commita2237ea8a78b6569213e095bb89a6b3f878d129b (patch)
tree858d67e002ce644c4a302c2666c6aad70d5d1e1c
parent9c91446ef793102f700fc81b1efc54055b1831ba (diff)
downloadforums-a2237ea8a78b6569213e095bb89a6b3f878d129b.tar
forums-a2237ea8a78b6569213e095bb89a6b3f878d129b.tar.gz
forums-a2237ea8a78b6569213e095bb89a6b3f878d129b.tar.bz2
forums-a2237ea8a78b6569213e095bb89a6b3f878d129b.tar.xz
forums-a2237ea8a78b6569213e095bb89a6b3f878d129b.zip
[feature/oauth] Add unlink_account to auth interface
PHPBB3-11673
-rw-r--r--phpBB/phpbb/auth/provider/base.php8
-rw-r--r--phpBB/phpbb/auth/provider/interface.php8
2 files changed, 16 insertions, 0 deletions
diff --git a/phpBB/phpbb/auth/provider/base.php b/phpBB/phpbb/auth/provider/base.php
index 2f1bf8f601..09e918cee4 100644
--- a/phpBB/phpbb/auth/provider/base.php
+++ b/phpBB/phpbb/auth/provider/base.php
@@ -101,4 +101,12 @@ abstract class phpbb_auth_provider_base implements phpbb_auth_provider_interface
{
return;
}
+
+ /**
+ * {@inheritdoc}
+ */
+ public function unlink_account(array $link_data)
+ {
+ return;
+ }
}
diff --git a/phpBB/phpbb/auth/provider/interface.php b/phpBB/phpbb/auth/provider/interface.php
index 21526fd858..4abbd75055 100644
--- a/phpBB/phpbb/auth/provider/interface.php
+++ b/phpBB/phpbb/auth/provider/interface.php
@@ -166,4 +166,12 @@ interface phpbb_auth_provider_interface
* an external account.
*/
public function link_account(array $link_data);
+
+ /**
+ * Unlinks an external account from a phpBB account.
+ *
+ * @param array $link_data Any data needed to unlink a phpBB account
+ * from a phpbb account.
+ */
+ public function unlink_account(array $link_data);
}