#382 email login

XOOPS_2.6
open
nobody
Core (214)
5
2012-09-25
2012-06-25
irmtfan
No

Ability to login with email as well as username:
source:
http://xoops.peak.ne.jp/md/d3forum/index.php?topic_id=3038

include/checklogin.php

// 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

Discussion


Log in to post a comment.