How to login with email address, not username?

  • Posts: 121
  • Thank you received: 7
10 years 5 months ago #157629

Hey there,

I'd like to modify the login page that appears on checkout so that you enter your email address and password, not username and password. Can you help me with that please? Thanks.

-- url of the page with the problem -- : nucleus-soundlab.com
-- HikaShop version -- : 2.3.1
-- Joomla version -- : 2.5.19
-- PHP version -- : 5.3.28
-- Browser(s) name and version -- : latest Chrome Windows 7

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 5 months ago #157654

Hi,

In the checkout options in Configuration > Checkout, you can use the Simplified registration or the simplified registration with password, this way the email address will be used instead of the username.

Please Log in or Create an account to join the conversation.

  • Posts: 121
  • Thank you received: 7
10 years 5 months ago #157948

Hi Xavier,

I think we are talking about two different things. I am already using 'simplified registration with password'. But those settings only effect the registration area for new users. What I am talking about is the login area for existing users.

I've attached an image showing exactly what I want to configure. I want existing users to be able to login with their email address, not username.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 2143
  • Thank you received: 747
10 years 5 months ago #157999

Excuse if I'm jumping in, but that's a Joomla limitation, not a "missing HikaShop feature" or so.

There are Joomla extensions available from 3rd-party developers which enable the use of username or email, or only email for login, just as you prefer. Best search the Joomla Extension Directory.


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

Please Log in or Create an account to join the conversation.

  • Posts: 121
  • Thank you received: 7
10 years 5 months ago #158001

Hmm... I understand what you mean, but isn't Hikashop creating this entire checkout page? I'm not sure that any 3rd-party extension could have any control over it.

Please Log in or Create an account to join the conversation.

  • Posts: 2143
  • Thank you received: 747
10 years 5 months ago #158002

The first words in this post are saying it all:

Xavier wrote: We are using the Joomla registration system...


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 5 months ago #157968

The simplified registration system takes the email of the user and put it in the username of the user record in the database.
So when the user comes back on the website and wants to login, he can use his email as username in the login form. There is nothing to do for that.
That's what Xavier wanted to say.

Now for users who registered via Joomla or before you had HikaShop, they have a different username than their email and it would require a joomla plugin to be installed for that:
extensions.joomla.org/extensions/access-...authentication/16096

Please Log in or Create an account to join the conversation.

  • Posts: 193
  • Thank you received: 15
  • Hikashop Business
7 months 1 week ago #360231

Hi,
I'm back with the topic (after 9 years).
The customer needs to use two alternative solutions: login via e-mail and login via username.
The option "use email address as user" is not enabled (this is his choice).
The plugin you provided does not work on the latest versions of hika and J5.
There is a plugin ( extensions.joomla.org/extension/access-a...name-authentication/ ) but it doesn't work in the purchase path.
The question is, do you know a solution that will work under J5?
Regards
Tomek

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
7 months 1 week ago #360232

Hi,

This plugin has some code which assumes that the username field of the login form uses the same name as the username field of the login form of Joomla.
This is incorrect. The event for the authentication already provides the username to use for the authentication, so no need to get it from the input.
I've made a pull request with the necessary change to properly support login forms from other extensions, including HikaShop:
github.com/muddygs/plg_authentication_emailx/pull/2
It's just a one line change if you want to apply it manually :
github.com/muddygs/plg_authentication_emailx/pull/2/files
It will then work properly.

Last edit: 7 months 1 week ago by nicolas.

Please Log in or Create an account to join the conversation.

  • Posts: 193
  • Thank you received: 15
  • Hikashop Business
7 months 1 week ago #360234

Nicolas,
Thanks - I will test it :)
Tom

Please Log in or Create an account to join the conversation.

Time to create page: 0.101 seconds
Powered by Kunena Forum