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

email instead of username when loggin in

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 | Posted on 2009/7/2 4:37
Deka87  ʼ   Posts: 1
hi, I noticed that you can use your email instead of a username when loggin in here. i wonder if it's possible to implement this to my xoops 2.2.3 website?
Votes:11 Average:8.18
Previous post - Next post | Parent - Children.1 | Posted on 2009/7/27 5:13
GIJOE  Ǥ   Posts: 4110
Quote:

hi, I noticed that you can use your email instead of a username when loggin in here. i wonder if it's possible to implement this to my xoops 2.2.3 website?
2.2.3.. really?

Anyway, there must be the such hacks or modifications for your core.
I had maintained the hack named "autologin" for XOOPS-2.0.x

This hack includes EmailLoginHack.
Votes:10 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2009/8/21 18:02 | Last modified
maguire_michael  ʼ   Posts: 1
How to implement this to xoops 2.2.3 website??
Votes:16 Average:6.25
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

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!