Registering with email (no username)
Permalink
Hello all,
A real quick question: Is there an official way to enable user registration with just and email and password, no username?
I didn't see a flag for USER_REGISTRATION_WITH_EMAIL_ADDRESS so
I went in the base.php and took it out of the conditional. This doesn't break anything outright, but when I try to register it throws an error that uName is null. I've even gone so far as taking the uName = uEmail line of do_register() out of the conditional. I'm about to try something a little more drastic, so I'm hoping there's a proper way to do this.
Thanks in advance!
Eric
Edit, Update, Solution::
Okay, after having the time to review controller/register.php I saw that the code to assign the email as the username falls *after* assigning the variable ($username) that passes the username to the database. With a little rearrangement of the code the registration form now works as intended.
A real quick question: Is there an official way to enable user registration with just and email and password, no username?
I didn't see a flag for USER_REGISTRATION_WITH_EMAIL_ADDRESS so
I went in the base.php and took it out of the conditional. This doesn't break anything outright, but when I try to register it throws an error that uName is null. I've even gone so far as taking the uName = uEmail line of do_register() out of the conditional. I'm about to try something a little more drastic, so I'm hoping there's a proper way to do this.
Thanks in advance!
Eric
Edit, Update, Solution::
Okay, after having the time to review controller/register.php I saw that the code to assign the email as the username falls *after* assigning the variable ($username) that passes the username to the database. With a little rearrangement of the code the registration form now works as intended.
Please help....