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.

EricPrime
View Replies:
maddog replied on at Permalink Reply
Is it possible to share ore information or show the area of the script that was modified. Look at my issue to see if it's the same item.http://www.concrete5.org/community/bugs/dashboard_signin_or_create_...
Please help....
wlionline replied on at Permalink Reply
Ok, so for those of us not hacking the php , can you offer a solution?
thanks