// | but WITHOUT ANY WARRANTY; without even the implied warranty of | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | // | GNU General Public License for more details. | // | | // | You should have received a copy of the GNU General Public License | // | along with this program; if not, contact: | // | | // | Free Software Foundation Voice: +1-617-542-5942 | // | 59 Temple Place - Suite 330 Fax: +1-617-542-2652 | // | Boston, MA 02111-1307, USA gnu@gnu.org | // | | // +-------------------------------------------------------------------+ /** * @package WiFiDogAuthServer * @author Benoit Grégoire <*****@*****.**> * @copyright 2007 Benoit Grégoire, Technologies Coeus inc. * @version Subversion $Id: $ * @link http://www.wifidog.org/ */ /** * Load required files */ require_once 'classes/Authenticator.php'; Authenticator::processLoginUI($errmsg); /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * c-hanging-comment-ender-p: nil * End: */
/** @return null if successfull, or message if not, or XML answer if cancelled */ private static function serverLogin($request) { //if ($wgRequest->getCheck('wpCancel')) { // return $request->answer(false); //} $retval = null; Authenticator::processLoginUI(); $user = User::getCurrentUser(); if (!$user) { return "Login failed"; } return $retval; }