Page 1 of 1
AC 7 username vs. email address
Posted: Thu May 13, 2010 8:10 pm
by mmackrell
My company is currently running AC 5.x and we are in the process of upgrading to the latest and greatest.
It is my understanding that all users now have to have an email address, as this will be their username. I completely understand this logic
However, some of the purchasing agents who purchase our products (we're B2B) may not have an email individually for themselves (it may be shared email such as
purchasing@clevelandclinic.com) and within that department, there may be several people procurring from our company.
My question: is there a way that we can maintain the 5.x way of logging in for customers that need that functionality? Is this something that can be customized?
Thanks in advance,
Margie
Re: AC 7 username vs. email address
Posted: Fri May 14, 2010 6:02 am
by mazhar
Actually AbleCommerce 7 can work with user names other then Email addresses. Right now there are certain validations where we collect user name input to collect valid Email address. I think if you give a try and remove Email validation check from signup and login page. Then create some user with some user name other then Email address and try loging it. Hopefully it will workout.
Re: AC 7 username vs. email address
Posted: Fri May 14, 2010 7:50 am
by mmackrell
Thanks Mazhar, I will do this and let you know how it works out.
Margie
Re: AC 7 username vs. email address
Posted: Tue May 18, 2010 11:22 am
by mmackrell
Mazhar,
I have removed the following code from the RegisterDialog.ascx:
Code: Select all
<cb:EmailAddressValidator ID="EmailAddressValidator1" runat="server" ControlToValidate="UserName"
ValidationGroup="Register" Display="Dynamic" Required="true"
ErrorMessage="Email address should be in the format of name@domain.tld." Text="*" EnableViewState="False"></cb:EmailAddressValidator>
And I see that there is validation code in the RegisterDialog.ascx.cs here:
Code: Select all
User newUser = UserDataSource.CreateUser(userName, userName, Password.Text, string.Empty, string.Empty, true, 0, out status);
Can you tell me where I would find the UserDataSource.CreateUser validation? I assume this is where I could go to removed the email check.
Thanks,
Margie
Re: AC 7 username vs. email address
Posted: Tue May 18, 2010 11:49 am
by mazhar
If this is not working for you then it seems like we are enforcing email validation in UserDataSource.CreateUser method as well. Its a back end class function and not available without source code. So alternative would be to create user your self using something like
Code: Select all
User user = new User();
user.UserName = "namehere";
user.Email = "Email";
.................
...............
..............
user.Save();
this will created user in database with name other then Email address. Finally at least your login page should not enforce Email address validation. Hopefully this will help you login with user name other then Email address.
Re: AC 7 username vs. email address
Posted: Tue May 18, 2010 11:56 am
by mmackrell
Thanks for the quick reply Mazhar. I am not a developer, so this is way beyond what I am capable of.
I assume there are third party providers that would do this customization for us and they would have access to the source code.
Margie
Re: AC 7 username vs. email address
Posted: Wed May 19, 2010 3:51 am
by s_ismail
Hello Margie,
We also provide services for able commerce customization, you can visit this site
http://www.plugables.com/Services.aspx for details.
Thanks
Re: AC 7 username vs. email address
Posted: Wed May 19, 2010 5:39 am
by jmestep
We have done a few customizations to handle that kind of problem when a client has upgraded from an Able 5 store. For pricing, you can check with Allan Soave- phone # is 708-853-3100 x210.
Re: AC 7 username vs. email address
Posted: Mon Nov 07, 2011 5:08 pm
by bradychris1
who is Allan Soave ? does he will guide us or help us ?