aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-04-08 20:57:36 -0700
committerfriendica <info@friendica.com>2013-04-08 20:57:36 -0700
commit17870912e456a616454f1b03fcb0d60a402334c9 (patch)
tree059ed4b31efcfcbedfd32d34c159e4ec3bcfd475 /mod
parentf5940b7ddb014cb19a90ad0a8a69d90bb84906dd (diff)
downloadvolse-hubzilla-17870912e456a616454f1b03fcb0d60a402334c9.tar.gz
volse-hubzilla-17870912e456a616454f1b03fcb0d60a402334c9.tar.bz2
volse-hubzilla-17870912e456a616454f1b03fcb0d60a402334c9.zip
document the ability to provide a selective magic-auth filter as a plugin plugin
Diffstat (limited to 'mod')
-rw-r--r--mod/magic.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/magic.php b/mod/magic.php
index 0f9a66c5b..d6697f6cc 100644
--- a/mod/magic.php
+++ b/mod/magic.php
@@ -35,7 +35,6 @@ function magic_init(&$a) {
}
-
if(! $x) {
// Finger them if they've never been seen here before
@@ -60,6 +59,9 @@ function magic_init(&$a) {
return;
}
+ // This is ready-made for a plugin that provides a blacklist or "ask me" before blindly authenticating.
+ // By default, we'll proceed without asking.
+
$arr = array(
'channel_id' => local_user(),
'xchan' => $x[0],