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

#   Empty field at login

##

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

Less More

- Posts: 1189
- Thank you received: 13
-
-

11 years 1 day ago [\#218105](#218105) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  *[Empty field at login](/forum/27-checkout/880009-empty-field-at-login#218105 "-- url of the page with the problem -- :   www.telchines.gr/  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.4  Hello! If someone wants to login to buy a product, there are two fields to fill in: 1) email and 2) password. Now, if i write my email but leave the password field empty, the page loads to the next step of the checkout progress. For example: Try to login without writting a password to see what i mean. Is there any way to have a popup message in that case?  Thank you in advance")* was created by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")*

-- url of the page with the problem -- : [ www.telchines.gr/](http://www.telchines.gr/)
-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.4

Hello!
If someone wants to login to buy a product, there are two fields to fill in: 1) email and 2) password.
Now, if i write my email but leave the password field empty, the page loads to the next step of the checkout progress.
For example: [url=http://http://www.telchines.gr/el/top-sellers/checkout][ www.telchines.gr/el/top-sellers/checkout](http://www.telchines.gr/el/top-sellers/checkout)[/url]
Try to login without writting a password to see what i mean.
Is there any way to have a popup message in that case?

Thank you in advance

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg4MDAwOS1lbXB0eS1maWVsZC1hdC1sb2dpbj90bXBsPW1hcmtkb3du) 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: 86286
- Thank you received: 14263
-
-

11 years 1 day ago [\#218141](#218141) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Empty field at login](/forum/27-checkout/880009-empty-field-at-login#218141 "-- url of the page with the problem -- :   www.telchines.gr/  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.4  Hello! If someone wants to login to buy a product, there are two fields to fill in: 1) email and 2) password. Now, if i write my email but leave the password field empty, the page loads to the next step of the checkout progress. For example: Try to login without writting a password to see what i mean. Is there any way to have a popup message in that case?  Thank you in advance")*

Hi,

I tried to look at your checkout on your website but everything is in Greek and I couldn't find a product I could add to the cart.
Could you provide a link to one so that we could look at the situation ?

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

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

Less More

- Posts: 1189
- Thank you received: 13
-
-

11 years 1 day ago -  11 years 19 hours ago [\#218165](#218165) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Empty field at login](/forum/27-checkout/880009-empty-field-at-login#218165 "-- url of the page with the problem -- :   www.telchines.gr/  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.4  Hello! If someone wants to login to buy a product, there are two fields to fill in: 1) email and 2) password. Now, if i write my email but leave the password field empty, the page loads to the next step of the checkout progress. For example: Try to login without writting a password to see what i mean. Is there any way to have a popup message in that case?  Thank you in advance")*

[ www.telchines.gr/index.php?option=com\_hi...y\_pathway=24&amp;lang=el](http://www.telchines.gr/index.php?option=com_hikashop&ctrl=product&task=show&cid=36&name=1&Itemid=302&category_pathway=24&lang=el)

click the red button "**Προσθήκη στο καλάθι**"
and then click the red button at the top right corner "**Ολοκλήρωση παραγγελίας**"
After that you will go automatically at the checkout page which requires login or register if you want to shop.
Once you are there, try to login like i mentioned previously.

Thank you!

Last edit: 11 years 19 hours ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg4MDAwOS1lbXB0eS1maWVsZC1hdC1sb2dpbj90bXBsPW1hcmtkb3du) 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: 86286
- Thank you received: 14263
-
-

11 years 16 hours ago [\#218231](#218231) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Empty field at login](/forum/27-checkout/880009-empty-field-at-login#218231 "-- url of the page with the problem -- :   www.telchines.gr/  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.4  Hello! If someone wants to login to buy a product, there are two fields to fill in: 1) email and 2) password. Now, if i write my email but leave the password field empty, the page loads to the next step of the checkout progress. For example: Try to login without writting a password to see what i mean. Is there any way to have a popup message in that case?  Thank you in advance")*

Hi,

I tried to login with an email address and without a password, and I got that error:
[ take.ms/y7xkQ](http://take.ms/y7xkQ)
So it seems that it's already working like you want no ?

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

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

Less More

- Posts: 1189
- Thank you received: 13
-
-

11 years 5 hours ago -  10 years 11 months ago [\#218279](#218279) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Empty field at login](/forum/27-checkout/880009-empty-field-at-login#218279 "-- url of the page with the problem -- :   www.telchines.gr/  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.4  Hello! If someone wants to login to buy a product, there are two fields to fill in: 1) email and 2) password. Now, if i write my email but leave the password field empty, the page loads to the next step of the checkout progress. For example: Try to login without writting a password to see what i mean. Is there any way to have a popup message in that case?  Thank you in advance")*

No, please do the opposite. Blanc email and a random password. I found this public_html/plugins/authentication/joomla/joomla.php
======

public function onUserAuthenticate($credentials, $options, &amp;$response)
{
$response-&gt;type = 'Joomla';

// Joomla does not like blank passwords
if (empty($credentials))
{
$response-&gt;status = JAuthentication::STATUS_FAILURE;
$response-&gt;error_message = JText::_('JGLOBAL_AUTH_EMPTY_PASS_NOT_ALLOWED');

return;
}
================
from line 32 to 41 that does the job for blanc email.

I tried to change the code there and add the 'password' somehow but , I didnt make it.
Joomla bug I believe but I would really appriciate it if you could paste the correct code.

Last edit: 10 years 11 months ago by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile"). Reason: wrong code

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

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

Less More

- Posts: 1189
- Thank you received: 13
-
-

10 years 11 months ago [\#218321](#218321) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Empty field at login](/forum/27-checkout/880009-empty-field-at-login#218321 "-- url of the page with the problem -- :   www.telchines.gr/  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.4  Hello! If someone wants to login to buy a product, there are two fields to fill in: 1) email and 2) password. Now, if i write my email but leave the password field empty, the page loads to the next step of the checkout progress. For example: Try to login without writting a password to see what i mean. Is there any way to have a popup message in that case?  Thank you in advance")*

Can I do something like that to make that condition work for username also? Code:

public function onUserAuthenticate($credentials, $options, &amp;$response) { $response-&gt;type = 'Joomla'; // Joomla does not like blank passwords if (empty($credentials['password','username'])) { $response-&gt;status = JAuthentication::STATUS_FAILURE; $response-&gt;error_message = JText::_('JGLOBAL_AUTH_EMPTY_PASS_NOT_ALLOWED'); return; }

I believe I tried it but it diesn t work

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg4MDAwOS1lbXB0eS1maWVsZC1hdC1sb2dpbj90bXBsPW1hcmtkb3du) 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: 86286
- Thank you received: 14263
-
-

10 years 11 months ago [\#218324](#218324) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Empty field at login](/forum/27-checkout/880009-empty-field-at-login#218324 "-- url of the page with the problem -- :   www.telchines.gr/  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.4  Hello! If someone wants to login to buy a product, there are two fields to fill in: 1) email and 2) password. Now, if i write my email but leave the password field empty, the page loads to the next step of the checkout progress. For example: Try to login without writting a password to see what i mean. Is there any way to have a popup message in that case?  Thank you in advance")*

Hi,

No, it should be: Code:

if (empty($credentials['password']) &#124;&#124; empty($credentials['username']))

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

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

Less More

- Posts: 1189
- Thank you received: 13
-
-

10 years 11 months ago [\#218404](#218404) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Empty field at login](/forum/27-checkout/880009-empty-field-at-login#218404 "-- url of the page with the problem -- :   www.telchines.gr/  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.4  Hello! If someone wants to login to buy a product, there are two fields to fill in: 1) email and 2) password. Now, if i write my email but leave the password field empty, the page loads to the next step of the checkout progress. For example: Try to login without writting a password to see what i mean. Is there any way to have a popup message in that case?  Thank you in advance")*

thanks for the code nikolas!
Unfortunately it doesn t stop to empty username. If you can give it a try...

I have in
public_html/plugins/authentication/joomla/joomla.php Code:

public function onUserAuthenticate($credentials, $options, &amp;$response) { $response-&gt;type = 'Joomla'; // Joomla does not like blank passwords if (empty($credentials['password']) &#124;&#124; empty($credentials['username'])) { $response-&gt;status = JAuthentication::STATUS_FAILURE; $response-&gt;error_message = JText::_('JGLOBAL_AUTH_EMPTY_PASS_NOT_ALLOWED'); return; }

but still if you try login it goes to step 2

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg4MDAwOS1lbXB0eS1maWVsZC1hdC1sb2dpbj90bXBsPW1hcmtkb3du) 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: 86286
- Thank you received: 14263
-
-

10 years 11 months ago [\#218513](#218513) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Empty field at login](/forum/27-checkout/880009-empty-field-at-login#218513 "-- url of the page with the problem -- :   www.telchines.gr/  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.4  Hello! If someone wants to login to buy a product, there are two fields to fill in: 1) email and 2) password. Now, if i write my email but leave the password field empty, the page loads to the next step of the checkout progress. For example: Try to login without writting a password to see what i mean. Is there any way to have a popup message in that case?  Thank you in advance")*

Hi,

Ok, then instead, add the line: Code:

$app-&gt;enqueueMessage(JText::_('JGLOBAL_AUTH_EMPTY_PASS_NOT_ALLOWED'));

after the line: Code:

}elseif(empty($name) &amp;&amp; empty($username) &amp;&amp; $messDisplay == 0){

in the file components/com_hikashop/controllers/checkout.php
That should handle that.

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

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

Less More

- Posts: 1189
- Thank you received: 13
-
-

10 years 11 months ago [\#218592](#218592) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Empty field at login](/forum/27-checkout/880009-empty-field-at-login#218592 "-- url of the page with the problem -- :   www.telchines.gr/  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.4  Hello! If someone wants to login to buy a product, there are two fields to fill in: 1) email and 2) password. Now, if i write my email but leave the password field empty, the page loads to the next step of the checkout progress. For example: Try to login without writting a password to see what i mean. Is there any way to have a popup message in that case?  Thank you in advance")*

Hi Nicolas!
It did work, just one detail that needs to be fixed, the message is correct but it appears as a success message with green background and letters. Also when the message pops, it's not on the step 0 of the checkout progress, so as result i have to click the button "Επόμενο" to go back to login.
I m sending screenshots to see.

Thank you

- [ ![without-email.jpg](/forum/attachment/27302) ](/forum/attachment/27302 "without-email.jpg") [ ](/forum/attachment/27302?download=1 "without-email.jpg")
- [ ![without-password.jpg](/forum/attachment/27303) ](/forum/attachment/27303 "...t-password.jpg") [ ](/forum/attachment/27303?download=1 "...t-password.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg4MDAwOS1lbXB0eS1maWVsZC1hdC1sb2dpbj90bXBsPW1hcmtkb3du) 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: 86286
- Thank you received: 14263
-
-

10 years 11 months ago [\#218635](#218635) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Empty field at login](/forum/27-checkout/880009-empty-field-at-login#218635 "-- url of the page with the problem -- :   www.telchines.gr/  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.4  Hello! If someone wants to login to buy a product, there are two fields to fill in: 1) email and 2) password. Now, if i write my email but leave the password field empty, the page loads to the next step of the checkout progress. For example: Try to login without writting a password to see what i mean. Is there any way to have a popup message in that case?  Thank you in advance")*

Hi,

Then, add that code instead: Code:

$app-&gt;enqueueMessage(JText::_('JGLOBAL_AUTH_EMPTY_PASS_NOT_ALLOWED'),'error'); return false;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg4MDAwOS1lbXB0eS1maWVsZC1hdC1sb2dpbj90bXBsPW1hcmtkb3du) 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.339 seconds

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

[](#top)
