diff options
author | Craig Andrews <candrews@integralblue.com> | 2010-01-05 13:42:15 -0500 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2010-01-05 13:42:15 -0500 |
commit | f3a76bbcb71bcb3c389e55d18a163fa9927bcc06 (patch) | |
tree | 865e8be6396c86a98f27bf529b88a27f41e9848a /plugins/Authentication | |
parent | 99c191912d3b2c6118cac1f24d9ab68d70e48a18 (diff) |
Fix auth plugin autoregistration issue.
Diffstat (limited to 'plugins/Authentication')
-rw-r--r-- | plugins/Authentication/AuthenticationPlugin.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Authentication/AuthenticationPlugin.php b/plugins/Authentication/AuthenticationPlugin.php index 75e8d2b76..07f14035d 100644 --- a/plugins/Authentication/AuthenticationPlugin.php +++ b/plugins/Authentication/AuthenticationPlugin.php @@ -146,7 +146,10 @@ abstract class AuthenticationPlugin extends Plugin }else{ $authenticated = $this->checkPassword($nickname, $password); if($authenticated){ - if(Event::handle('AutoRegister', array($nickname, $this->provider_name, &$authenticatedUser))){ + if(! Event::handle('AutoRegister', array($nickname, $this->provider_name, &$authenticatedUser))){ + //unlike most Event::handle lines of code, this one has a ! (not) + //we want to do this if the event *was* handled - this isn't a "default" implementation + //like most code of this form. if($authenticatedUser){ return false; } |