aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-27 16:58:06 +0000
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-27 16:58:06 +0000
commitde7ca710d04cf6d1f53e03f1af110745e48a186a (patch)
tree0a6e84e5f24d03552ac4adb2a90243aa5f425447
parentc56951806336ceb6bfae31f53b62bdfb72ee09ff (diff)
downloadelgg-de7ca710d04cf6d1f53e03f1af110745e48a186a.tar.gz
elgg-de7ca710d04cf6d1f53e03f1af110745e48a186a.tar.bz2
Restricting external user creation from Facebook Services.
git-svn-id: http://code.elgg.org/elgg/trunk@5905 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--mod/walledgarden/start.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/walledgarden/start.php b/mod/walledgarden/start.php
index 260a8c1e4..9c9a2fce3 100644
--- a/mod/walledgarden/start.php
+++ b/mod/walledgarden/start.php
@@ -13,7 +13,9 @@ function walledgarden_init(){
elgg_extend_view('pageshells/pageshell', 'walledgarden/walledgarden');
elgg_extend_view('css','walledgarden/css');
- register_plugin_hook('new_twitter_user', 'twitter_service', 'walledgarden_new_twitter_user');
+ // restrict external user creation
+ register_plugin_hook('new_twitter_user', 'twitter_service', 'walledgarden_new_external_user');
+ register_plugin_hook('new_facebook_user', 'facebook_service', 'walledgarden_new_external_user');
if(!isloggedin())
register_plugin_hook('index','system','walledgarden_index');
@@ -40,7 +42,7 @@ function walledgarden_index() {
}
-function walledgarden_new_twitter_user($hook, $entity_type, $returnvalue, $params) {
+function walledgarden_new_external_user($hook, $entity_type, $returnvalue, $params) {
// do not allow new users to be created within the walled-garden
register_error(elgg_echo('walledgarden:new_user:fail'));
return FALSE;