11 replies [Last post]
JaceRider's picture
Offline
Joined: 03/17/2008
Juice: 98
Was this information Helpful?

Hello,

The way the system currently works -- if a user purchases an item anonymously they automatically have an account setup with their email address as their username. Email addresses have a tendency to be very long and have been a bane to my user management.

Would it be possible to have the account auto create with a username that truncates the email address at the '@' symbol. Basically, have it take the username myusername@thisemailaddress.com and use that email as the accounts email address and make the username 'myusername'? If a user already exists with the username 'myusername'... just take on a number and make it 'myusername1'.

Is this doable? Or even a good idea?

Thanks for your great work on this!

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Email Address as Username? Often times very long.

Sounds like a good idea to me. It also answers the question that was posed in the past about people's e-mail addresses potentially being exposed to other users. A short term solution is to edit the checkout pane settings for the customer pane to allow users to specify a username at checkout.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Email Address as Username? Often times very long.

Never got back on this... the feature will be in RC 5. I considered it a minor bug, as well, in that e-mail addresses could have exceeded the max username length causing trouble. It now strips away the @whatever.com and makes sure the name is unique by adding a random number if need be.

Tested fine on the Livetest.

JaceRider's picture
Offline
Joined: 03/17/2008
Juice: 98
Re: Re: Re: Email Address as Username? Often times very long.

Excellent news! Thanks so much!

dharmatech's picture
Offline
Bug Finder
Joined: 01/28/2008
Juice: 94
Re: Email Address as Username? Often times very long.

We put a patch in the contrib area that allows a site admin to prevent the user account generation completely. It still uses the email address to identify the user to Ubercart. The patch is against an earlier version but we have it running on RC4 and could extract it from our Subversion repository if you're interested.

JaceRider's picture
Offline
Joined: 03/17/2008
Juice: 98
Re: Re: Email Address as Username? Often times very long.

Nah, I really like the fact that an account is created for the user. I just have a setup on my most recent site that has the possibility of displaying the latest registered member usernames... and would rather not have a buyer's email address show up there for all the spammers and their friends.

Thanks though.

Waterlander's picture
Offline
Joined: 10/25/2008
Juice: 6
I prefer the full e-mail address

Hello,

Is it possible to still use the full email address. If so where can I change the settings?
I prefer the full e-mail address because that is easier to remember for the customers.

Thank you

longwave's picture
Offline
Joined: 09/20/2008
Juice: 487
Re: I prefer the full e-mail address

The logintoboggan module lets users log in with either their username or the email address registered to their account.

http://drupal.org/project/logintoboggan

--
These forums are for general support questions about Ubercart.
Bug reports and feature requests should be posted at http://drupal.org/project/issues/ubercart
Latest API documentation can be found at http://api.ubercart.me/

Waterlander's picture
Offline
Joined: 10/25/2008
Juice: 6
Thanks longwave, Uploaded

Thanks longwave,

Uploaded the module, changed the welcome e-mail. At Drupal user settings.
for example,
gebruikersnaam: !username
e-mailadres: !mailto
wachtwoord: !password
etc,

And works perfect.
That's all.

sunfish's picture
Offline
Joined: 01/01/2009
Juice: 72
Re: Thanks longwave, Uploaded

I disagree that the stripped email address should be the only choice for username. It should be an option at the most.
The default should always be the full email address, which is:

1. widely used as a defacto username in many sites;
2. guaranteed to be unique.

fuerst's picture
Offline
Joined: 03/12/2011
Juice: 25
Re: Email Address as Username? Often times very long.

I think, stripping the email address and using it as user name should be an option. Without modifying Ubercart code it is not possible to change the current behaviour.

skandalfish's picture
Offline
Joined: 03/28/2012
Juice: 8
Holy necro-posting, Batman!

I know this is an older thread, but this is exactly what I'm working on this week.
I'd like to use the full email address as the username. I understand that there would be security risks involved with a standard discussion board or social media site. On the site I'm working on however, only admins will see the username. The only other visibility of the username is an authenticated user, able to see only their own username. Could uc_store simply be modified to use Drupal's standard checks from user.module? Any thoughts or advice on this is welcome.
Thanks in advance!