Quote:
maguire_michael wrotes:
How to implement this to xoops 2.2.3 website??
Have you read this topic?
I wonder why you want hack for "2.2.3" now.
If you really want hack for "2.2.3" - the version of Mithrandir/Skalpa, try this code.
include/checklogin.php
line 43:
$member_handler =& xoops_gethandler('member');
$myts =& MyTextsanitizer::getInstance();
// EmailLogin begin
if( strstr( $_POST['uname'] , '@' ) ) {
@list( $uname ) = $xoopsDB->fetchRow( $xoopsDB->query( "SELECT loginname FROM ".$xoopsDB->prefix('users')." WHERE email='".$myts->addSlashes($_POST['uname'])."'" ) ) ;
}
// EmailLogin end
// Place here the Auth class calls
//**** BEGIN AUTH ****