forked from GNUsocial/gnu-social
Fix auth plugin autoregistration issue.
This commit is contained in:
parent
99c191912d
commit
f3a76bbcb7
@ -146,7 +146,10 @@ abstract class AuthenticationPlugin extends Plugin
|
|||||||
}else{
|
}else{
|
||||||
$authenticated = $this->checkPassword($nickname, $password);
|
$authenticated = $this->checkPassword($nickname, $password);
|
||||||
if($authenticated){
|
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){
|
if($authenticatedUser){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user