PEAK XOOPS - Re: email instead of username when loggin in in englishin japanese

Re: email instead of username when loggin in

List posts in the topic

none Re: email instead of username when loggin in

msg# 1.1.1.1
depth:
3
Previous post - Next post | Parent - No child | Posted on 2009/8/23 16:13
GIJOE  Ǥ   Posts: 4110
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 ****
Votes:8 Average:10.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!