1
susanna_le
Login with e-mail instead of made-up username
  • 2010/8/21 12:17

  • susanna_le

  • Just popping in

  • Posts: 10

  • Since: 2010/3/1 2


Hi!
I would like to have the users to login with their e-mail instead of a made-up username. I tried to replace the username variable but then I got stuck at the verification step that comes when including auth.php and authfactory.php in system_blocks_login.

I therefore decided to change tachtics and made the maximum length of the user name variable longer so that an e-mail address would fit. However, the problem now is that it doesn't approve the format and I receive an errormessage.
1. How can I make the user name field to approve an email address?

2. How can I make sure that the uswer name (= email) will be compared to the second field (the in fact email field, that I'm now planning to use as a "repeat your email fiedl").

gratefull for help!!!

/susanna

2
kakos
Re: Login with e-mail instead of made-up username
  • 2010/8/21 21:53

  • kakos

  • Friend of XOOPS

  • Posts: 79

  • Since: 2002/6/6 2


I think something like that does the auto login hack from Gijoe ... But don't think it works with the latest versions of xoops .. Take a look here

3
susanna_le
Re: Login with e-mail instead of made-up username
  • 2010/8/23 20:19

  • susanna_le

  • Just popping in

  • Posts: 10

  • Since: 2010/3/1 2


Hi!
Thanks it worked!
Now I can log in both with the username and the e-mail.

I still have some issues with the initial registration step though.

FIRST ISSUE
I am receiving the following error message:
"Could not register new user.
uname must be shorter than 25 characters."

I have already done the following:
1) Increased value in database table
2) Increased value in input user form
3) Increased value in User info settings in ADMIN
4) Increased the value in include/registerform.php:
$reg_form->addElement(new XoopsFormText(_US_NICKNAME, 'uname', 100, 99, $myts->htmlSpecialChars($uname)), true);

What am I missing?!

I read another post where someone (DAVE L) wrote that:

"There may be other problems, though. I tried increasing that value, and I still couldn't register a user with a long name. One of these checks in register.php is failing:

if (!$member_handler->insertUser($newuser)) {
echo _US_REGISTERNG;
include 'footer.php';
exit();
}
$newid = $newuser->getVar('uid');
if (!$member_handler->addUserToGroup(XOOPS_GROUP_USERS, $newid)) {
echo _US_REGISTERNG;
include 'footer.php';
exit();
}

I glanced at those functions, and didn't see anything obvious, so more debugging is needed."

SECOND ISSUE
In my registration I want a new user to write his/her username (has to be e-mail), then write the e-mail a second time for comparison adn validation. I need to make sure that the user name will match the email value.

Any tips how to tackle these to issues??

br
Susanna

4
Shiva
Re: Login with e-mail instead of made-up username
  • 2010/9/8 10:09

  • Shiva

  • Quite a regular

  • Posts: 280

  • Since: 2006/7/9 1


Hi,

How did you get on with the email address logins?

Cheers.

Login

Who's Online

194 user(s) are online (75 user(s) are browsing Support Forums)


Members: 0


Guests: 194


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits