summaryrefslogtreecommitdiff
path: root/plugins/ReverseUsernameAuthentication/ReverseUsernameAuthenticationPlugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ReverseUsernameAuthentication/ReverseUsernameAuthenticationPlugin.php')
-rw-r--r--plugins/ReverseUsernameAuthentication/ReverseUsernameAuthenticationPlugin.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/plugins/ReverseUsernameAuthentication/ReverseUsernameAuthenticationPlugin.php b/plugins/ReverseUsernameAuthentication/ReverseUsernameAuthenticationPlugin.php
index d48283b2e..d9d2137f8 100644
--- a/plugins/ReverseUsernameAuthentication/ReverseUsernameAuthenticationPlugin.php
+++ b/plugins/ReverseUsernameAuthentication/ReverseUsernameAuthenticationPlugin.php
@@ -31,8 +31,6 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
exit(1);
}
-require_once INSTALLDIR.'/plugins/Authentication/AuthenticationPlugin.php';
-
class ReverseUsernameAuthenticationPlugin extends AuthenticationPlugin
{
//---interface implementation---//
@@ -55,4 +53,15 @@ class ReverseUsernameAuthenticationPlugin extends AuthenticationPlugin
$registration_data['nickname'] = $username ;
return User::register($registration_data);
}
+
+ function onPluginVersion(&$versions)
+ {
+ $versions[] = array('name' => 'Reverse Username Authentication',
+ 'version' => STATUSNET_VERSION,
+ 'author' => 'Craig Andrews',
+ 'homepage' => 'http://status.net/wiki/Plugin:ReverseUsernameAuthentication',
+ 'rawdescription' =>
+ _m('The Reverse Username Authentication plugin allows for StatusNet to handle authentication by checking if the provided password is the same as the reverse of the username.'));
+ return true;
+ }
}