Index: trunk/extensions/LdapAuthentication/LdapAuthentication.php |
— | — | @@ -1615,7 +1615,7 @@ |
1616 | 1616 | //They already with us? If so, quit this function. |
1617 | 1617 | if( $tmpuser->isLoggedIn() ) { |
1618 | 1618 | $wgAuth->printDebug( "User is already logged in.", 1 ); |
1619 | | - return false; |
| 1619 | + return true; |
1620 | 1620 | } |
1621 | 1621 | |
1622 | 1622 | //Let regular authentication plugins configure themselves for auto |
— | — | @@ -1629,7 +1629,7 @@ |
1630 | 1630 | //If the user doesn't exist in LDAP, there isn't much reason to |
1631 | 1631 | //go any further. |
1632 | 1632 | $wgAuth->printDebug("User wasn't found in LDAP, exiting.", 1 ); |
1633 | | - return false; |
| 1633 | + return true; |
1634 | 1634 | } |
1635 | 1635 | |
1636 | 1636 | //We need the username that MediaWiki will always use, *not* the one we |
— | — | @@ -1643,7 +1643,7 @@ |
1644 | 1644 | |
1645 | 1645 | if ( $tmpuser == null ) { |
1646 | 1646 | $wgAuth->printDebug( "Username is not a valid MediaWiki username.", 1 ); |
1647 | | - return false; |
| 1647 | + return true; |
1648 | 1648 | } |
1649 | 1649 | |
1650 | 1650 | //If exists, log them in |
— | — | @@ -1653,7 +1653,7 @@ |
1654 | 1654 | $wgAuth->updateUser( $wgUser ); |
1655 | 1655 | $wgUser->setCookies(); |
1656 | 1656 | $wgUser->setupSession(); |
1657 | | - return false; |
| 1657 | + return true; |
1658 | 1658 | } |
1659 | 1659 | $wgAuth->printDebug( "User does not exist in local database; creating.", 1 ); |
1660 | 1660 | |