[Skip to main content](#vessel-content)

#   Allow users to login with username OR email

##

- **[infinityb](/forum/user/60598-infinityb "View infinityb's Profile")**
- [![infinityb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60598-infinityb "View infinityb's Profile") Topic Author
- [ Offline](/forum/user/60598-infinityb)

Less More

- Posts: 50
- Thank you received: 4
-

5 years 8 months ago [\#329822](#329822) by [infinityb](/forum/user/60598-infinityb "View infinityb's Profile")  *[Allow users to login with username OR email](/forum/50-feature-request/901977-allow-users-to-login-with-username-or-email#329822 "Hi, Would this be possible for a future version please? I use a plugin to allow this in other areas of Joomla, but I also have the Hikashop login form on the checkout which only allows login via usename - which might not be the email address as I also use the guest checkout.")* was created by *[infinityb](/forum/user/60598-infinityb "View infinityb's Profile")*

Hi,
Would this be possible for a future version please?
I use a plugin to allow this in other areas of Joomla, but I also have the Hikashop login form on the checkout which only allows login via usename - which might not be the email address as I also use the guest checkout.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDE5NzctYWxsb3ctdXNlcnMtdG8tbG9naW4td2l0aC11c2VybmFtZS1vci1lbWFpbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

5 years 8 months ago [\#329895](#329895) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Allow users to login with username OR email](/forum/50-feature-request/901977-allow-users-to-login-with-username-or-email#329895 "Hi, Would this be possible for a future version please? I use a plugin to allow this in other areas of Joomla, but I also have the Hikashop login form on the checkout which only allows login via usename - which might not be the email address as I also use the guest checkout.")*

Hi,

I suppose the plugin you have installed also works for the HikaShop login form.
However, the text of the form still says "username", but if you enter the email address in it, it will probably work.
In that case, you can just use a translation override to change the text:
[ www.hikashop.com/download/languages.html#modify](https://www.hikashop.com/download/languages.html#modify)
And on the registration form, you can also remove the "username" field by changing the "registration" setting to "simplified registration with password" in the HikaShop configuration. In that case, HikaShop will automatically use the email address of the user as the username and thus even without any plugin, customers will be able to login with their email address as username.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDE5NzctYWxsb3ctdXNlcnMtdG8tbG9naW4td2l0aC11c2VybmFtZS1vci1lbWFpbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[infinityb](/forum/user/60598-infinityb "View infinityb's Profile")**
- [![infinityb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60598-infinityb "View infinityb's Profile") Topic Author
- [ Offline](/forum/user/60598-infinityb)

Less More

- Posts: 50
- Thank you received: 4
-

5 years 8 months ago [\#329948](#329948) by [infinityb](/forum/user/60598-infinityb "View infinityb's Profile")  Replied by *[infinityb](/forum/user/60598-infinityb "View infinityb's Profile")* on topic *[Allow users to login with username OR email](/forum/50-feature-request/901977-allow-users-to-login-with-username-or-email#329948 "Hi, Would this be possible for a future version please? I use a plugin to allow this in other areas of Joomla, but I also have the Hikashop login form on the checkout which only allows login via usename - which might not be the email address as I also use the guest checkout.")*

Hi,
The plugin doesn't work on the Hikashop checkout login form unfortunately.
I am using guest checkout - don't want to use registration as not many of my customers like to register - so can't set the username to be email that way.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDE5NzctYWxsb3ctdXNlcnMtdG8tbG9naW4td2l0aC11c2VybmFtZS1vci1lbWFpbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

5 years 8 months ago [\#329956](#329956) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Allow users to login with username OR email](/forum/50-feature-request/901977-allow-users-to-login-with-username-or-email#329956 "Hi, Would this be possible for a future version please? I use a plugin to allow this in other areas of Joomla, but I also have the Hikashop login form on the checkout which only allows login via usename - which might not be the email address as I also use the guest checkout.")*

Hi,

Then I can only recommend to use another plugin. I don't see why it would be a problem to have a login plugin like this work for any login form on the website.
All the login forms, including HikaShop's go through Joomla's JFactory::getApplication()-&gt;login() function. And the login system in Joomla has a specific plugin group called "authenticate" for plugins to approve other ways to login besides the standard way:
[ docs.joomla.org/J3.x:Creating\_an\_Authent...on\_Plugin\_for\_Joomla](https://docs.joomla.org/J3.x:Creating_an_Authentication_Plugin_for_Joomla)
For example, this plugin does exactly what I'm talking about:
[ extensions.joomla.org/extension/authentication-email/](https://extensions.joomla.org/extension/authentication-email/)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDE5NzctYWxsb3ctdXNlcnMtdG8tbG9naW4td2l0aC11c2VybmFtZS1vci1lbWFpbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[infinityb](/forum/user/60598-infinityb "View infinityb's Profile")**
- [![infinityb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60598-infinityb "View infinityb's Profile") Topic Author
- [ Offline](/forum/user/60598-infinityb)

Less More

- Posts: 50
- Thank you received: 4
-

5 years 8 months ago [\#329976](#329976) by [infinityb](/forum/user/60598-infinityb "View infinityb's Profile")  Replied by *[infinityb](/forum/user/60598-infinityb "View infinityb's Profile")* on topic *[Allow users to login with username OR email](/forum/50-feature-request/901977-allow-users-to-login-with-username-or-email#329976 "Hi, Would this be possible for a future version please? I use a plugin to allow this in other areas of Joomla, but I also have the Hikashop login form on the checkout which only allows login via usename - which might not be the email address as I also use the guest checkout.")*

Hi Nicolas,
That is the exact plugin I'm currently actually.
I will double check it, maybe the plugin ordering might have an effect?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDE5NzctYWxsb3ctdXNlcnMtdG8tbG9naW4td2l0aC11c2VybmFtZS1vci1lbWFpbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[infinityb](/forum/user/60598-infinityb "View infinityb's Profile")**
- [![infinityb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60598-infinityb "View infinityb's Profile") Topic Author
- [ Offline](/forum/user/60598-infinityb)

Less More

- Posts: 50
- Thank you received: 4
-

5 years 8 months ago [\#329981](#329981) by [infinityb](/forum/user/60598-infinityb "View infinityb's Profile")  Replied by *[infinityb](/forum/user/60598-infinityb "View infinityb's Profile")* on topic *[Allow users to login with username OR email](/forum/50-feature-request/901977-allow-users-to-login-with-username-or-email#329981 "Hi, Would this be possible for a future version please? I use a plugin to allow this in other areas of Joomla, but I also have the Hikashop login form on the checkout which only allows login via usename - which might not be the email address as I also use the guest checkout.")*

The ordering has no effect, it still doesn't work on the Hikashop checkout login form, while it does in the Joomla login module.
I have sent you credentials of my demo site by DM where I have the latest Joomla and Hikashop versions installed, no modifications or overrides.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDE5NzctYWxsb3ctdXNlcnMtdG8tbG9naW4td2l0aC11c2VybmFtZS1vci1lbWFpbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

5 years 8 months ago [\#330013](#330013) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Allow users to login with username OR email](/forum/50-feature-request/901977-allow-users-to-login-with-username-or-email#330013 "Hi, Would this be possible for a future version please? I use a plugin to allow this in other areas of Joomla, but I also have the Hikashop login form on the checkout which only allows login via usename - which might not be the email address as I also use the guest checkout.")*

Hi,

I do see the issue on your website.
However, I'm not able to reproduce it on my end.
I've installed the plugin and enabled it on a test website on my end, and after that I can login with the email address of a user account through HikaShop's login form on the checkout without a problem.
So I don't understand what's going on. Are you sure that you're using the plugin of my link ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDE5NzctYWxsb3ctdXNlcnMtdG8tbG9naW4td2l0aC11c2VybmFtZS1vci1lbWFpbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[infinityb](/forum/user/60598-infinityb "View infinityb's Profile")**
- [![infinityb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60598-infinityb "View infinityb's Profile") Topic Author
- [ Offline](/forum/user/60598-infinityb)

Less More

- Posts: 50
- Thank you received: 4
-

5 years 7 months ago [\#330309](#330309) by [infinityb](/forum/user/60598-infinityb "View infinityb's Profile")  Replied by *[infinityb](/forum/user/60598-infinityb "View infinityb's Profile")* on topic *[Allow users to login with username OR email](/forum/50-feature-request/901977-allow-users-to-login-with-username-or-email#330309 "Hi, Would this be possible for a future version please? I use a plugin to allow this in other areas of Joomla, but I also have the Hikashop login form on the checkout which only allows login via usename - which might not be the email address as I also use the guest checkout.")*

Hi Nicolas, yes I am definitely using that plugin. I have tried both the version linked on the Joomla Extension Directory (2.3.2) and the newer version (2.4.2) available from their website and neither works.
I will DM you super user access to my test site if you would like to have a look.

- [ ![Screenshot&#95;2021-03-03ExtensionsManage-TammysJoomlaWebsite-Administration.png](/forum/attachment/52151) ](/forum/attachment/52151 "...nistration.png") [ ](/forum/attachment/52151?download=1 "...nistration.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDE5NzctYWxsb3ctdXNlcnMtdG8tbG9naW4td2l0aC11c2VybmFtZS1vci1lbWFpbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[infinityb](/forum/user/60598-infinityb "View infinityb's Profile")**
- [![infinityb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60598-infinityb "View infinityb's Profile") Topic Author
- [ Offline](/forum/user/60598-infinityb)

Less More

- Posts: 50
- Thank you received: 4
-

5 years 7 months ago -  5 years 7 months ago [\#330311](#330311) by [infinityb](/forum/user/60598-infinityb "View infinityb's Profile")  Replied by *[infinityb](/forum/user/60598-infinityb "View infinityb's Profile")* on topic *[Allow users to login with username OR email](/forum/50-feature-request/901977-allow-users-to-login-with-username-or-email#330311 "Hi, Would this be possible for a future version please? I use a plugin to allow this in other areas of Joomla, but I also have the Hikashop login form on the checkout which only allows login via usename - which might not be the email address as I also use the guest checkout.")*

Sorry, the password was wrong, I have just updated it so you should be able to log in now.

Last edit: 5 years 7 months ago by [infinityb](/forum/user/60598-infinityb "View infinityb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDE5NzctYWxsb3ctdXNlcnMtdG8tbG9naW4td2l0aC11c2VybmFtZS1vci1lbWFpbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

5 years 7 months ago [\#330313](#330313) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Allow users to login with username OR email](/forum/50-feature-request/901977-allow-users-to-login-with-username-or-email#330313 "Hi, Would this be possible for a future version please? I use a plugin to allow this in other areas of Joomla, but I also have the Hikashop login form on the checkout which only allows login via usename - which might not be the email address as I also use the guest checkout.")*

Hi,

Well, I still don't see why it wouldn't work on your website.
The only thing left would be to directly debug the code of the plugin to see why it doesn't work. So we would need a FTP access for that.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDE5NzctYWxsb3ctdXNlcnMtdG8tbG9naW4td2l0aC11c2VybmFtZS1vci1lbWFpbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[infinityb](/forum/user/60598-infinityb "View infinityb's Profile")**
- [![infinityb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60598-infinityb "View infinityb's Profile") Topic Author
- [ Offline](/forum/user/60598-infinityb)

Less More

- Posts: 50
- Thank you received: 4
-

5 years 5 months ago [\#332429](#332429) by [infinityb](/forum/user/60598-infinityb "View infinityb's Profile")  Replied by *[infinityb](/forum/user/60598-infinityb "View infinityb's Profile")* on topic *[Allow users to login with username OR email](/forum/50-feature-request/901977-allow-users-to-login-with-username-or-email#332429 "Hi, Would this be possible for a future version please? I use a plugin to allow this in other areas of Joomla, but I also have the Hikashop login form on the checkout which only allows login via usename - which might not be the email address as I also use the guest checkout.")*

Hi, if you could have a look that would be great. I have sent FTP details in a private message.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDE5NzctYWxsb3ctdXNlcnMtdG8tbG9naW4td2l0aC11c2VybmFtZS1vci1lbWFpbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

5 years 5 months ago [\#332479](#332479) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Allow users to login with username OR email](/forum/50-feature-request/901977-allow-users-to-login-with-username-or-email#332479 "Hi, Would this be possible for a future version please? I use a plugin to allow this in other areas of Joomla, but I also have the Hikashop login form on the checkout which only allows login via usename - which might not be the email address as I also use the guest checkout.")*

Hi,

I'm not able to access your FTP server.
I'm getting the error: Code:

Command: USER ************@************.co.uk Response: 331 User ************@************.co.uk OK. Password required Command: PASS ************ Response: 530 Login authentication failed

Could you please double check the FTP credentials you provided ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDE5NzctYWxsb3ctdXNlcnMtdG8tbG9naW4td2l0aC11c2VybmFtZS1vci1lbWFpbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[infinityb](/forum/user/60598-infinityb "View infinityb's Profile")**
- [![infinityb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60598-infinityb "View infinityb's Profile") Topic Author
- [ Offline](/forum/user/60598-infinityb)

Less More

- Posts: 50
- Thank you received: 4
-

5 years 5 months ago [\#332656](#332656) by [infinityb](/forum/user/60598-infinityb "View infinityb's Profile")  Replied by *[infinityb](/forum/user/60598-infinityb "View infinityb's Profile")* on topic *[Allow users to login with username OR email](/forum/50-feature-request/901977-allow-users-to-login-with-username-or-email#332656 "Hi, Would this be possible for a future version please? I use a plugin to allow this in other areas of Joomla, but I also have the Hikashop login form on the checkout which only allows login via usename - which might not be the email address as I also use the guest checkout.")*

Hi, I have sent amended details now

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDE5NzctYWxsb3ctdXNlcnMtdG8tbG9naW4td2l0aC11c2VybmFtZS1vci1lbWFpbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

5 years 5 months ago [\#332658](#332658) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Allow users to login with username OR email](/forum/50-feature-request/901977-allow-users-to-login-with-username-or-email#332658 "Hi, Would this be possible for a future version please? I use a plugin to allow this in other areas of Joomla, but I also have the Hikashop login form on the checkout which only allows login via usename - which might not be the email address as I also use the guest checkout.")*

Hi,

I'm still not able to access your FTP server, even with the new host. Could you please check again the credentials ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDE5NzctYWxsb3ctdXNlcnMtdG8tbG9naW4td2l0aC11c2VybmFtZS1vci1lbWFpbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[infinityb](/forum/user/60598-infinityb "View infinityb's Profile")**
- [![infinityb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60598-infinityb "View infinityb's Profile") Topic Author
- [ Offline](/forum/user/60598-infinityb)

Less More

- Posts: 50
- Thank you received: 4
-

5 years 5 months ago [\#332732](#332732) by [infinityb](/forum/user/60598-infinityb "View infinityb's Profile")  Replied by *[infinityb](/forum/user/60598-infinityb "View infinityb's Profile")* on topic *[Allow users to login with username OR email](/forum/50-feature-request/901977-allow-users-to-login-with-username-or-email#332732 "Hi, Would this be possible for a future version please? I use a plugin to allow this in other areas of Joomla, but I also have the Hikashop login form on the checkout which only allows login via usename - which might not be the email address as I also use the guest checkout.")*

Hi, I have changed the password and sent you the new one

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDE5NzctYWxsb3ctdXNlcnMtdG8tbG9naW4td2l0aC11c2VybmFtZS1vci1lbWFpbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[info@lerenardquitrace.be](/forum/user/59029-info-lerenardquitrace-be "View info@lerenardquitrace.be's Profile")**
- [![info@lerenardquitrace.be's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59029-info-lerenardquitrace-be "View info@lerenardquitrace.be's Profile")
- [ Offline](/forum/user/59029-info-lerenardquitrace-be)

Less More

- Posts: 124
- Thank you received: 10
-
-

4 years 5 months ago -  4 years 4 months ago [\#341993](#341993) by [info@lerenardquitrace.be](/forum/user/59029-info-lerenardquitrace-be "View info@lerenardquitrace.be's Profile")  Replied by *[info@lerenardquitrace.be](/forum/user/59029-info-lerenardquitrace-be "View info@lerenardquitrace.be's Profile")* on topic *[Allow users to login with username OR email](/forum/50-feature-request/901977-allow-users-to-login-with-username-or-email#341993 "Hi, Would this be possible for a future version please? I use a plugin to allow this in other areas of Joomla, but I also have the Hikashop login form on the checkout which only allows login via usename - which might not be the email address as I also use the guest checkout.")*

Hi sorry to re-up an old post put I got the same problem.
Here is the solution :
In the plugin file \plugins\authentication\email\email.php
The code to get the username is : Code:

$username = JFactory::getApplication()-&gt;input-&gt;post-&gt;get('username',null,'RAW');

But during the submit of the login form in hikashop the login is not provided by a field name "username".
To adjust the code you have to change this line by :
Code:

$username = JFactory::getApplication()-&gt;input-&gt;post-&gt;get('username', isset($credentials['username']) ? $credentials['username'] : null ,'RAW');

This should fix the problem in all situations.

Best regards.

Last edit: 4 years 4 months ago by [info@lerenardquitrace.be](/forum/user/59029-info-lerenardquitrace-be "View info@lerenardquitrace.be's Profile").

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDE5NzctYWxsb3ctdXNlcnMtdG8tbG9naW4td2l0aC11c2VybmFtZS1vci1lbWFpbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.502 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
