J2Store4 / j2store4

J2Store 4 - Open Source eCommerce extension for Joomla
https://www.j2store.org
GNU General Public License v3.0
15 stars 7 forks source link

Problem in inserting a space in the email #91

Closed mehdininja closed 3 months ago

mehdininja commented 3 months ago

In some buyers' emails, a space is inserted at the end! "test@test.com "

There is no problem in login guest, but there is an error in viewing and printing the invoice.

jprint

jem

By removing the space from the end of the email, the problem is solved. But why is this space added in some emails?

mgopin3 commented 3 months ago

@mehdininja We have verified that our guest user login functionality is operating smoothly. Upon examination, we ensure that entering spaces at the end of the guest email address triggers an error prompt, preventing login and prompting users to input a valid email. For further clarification, please refer to the provided video demonstration:- https://www.awesomescreenshot.com/video/25764563?key=f94e3ab1f444df14d413b69da2f21369

mehdininja commented 3 months ago

@mgopin3 Please watch this video I recorded to understand the problem

https://github.com/J2Store4/j2store4/assets/74552816/c48280c8-0227-4b2b-947f-f6ebe1e9b7ad

mgopin3 commented 3 months ago

@mehdininja Typically, we verify that the email and token associated with an order match before allowing access to view the invoice. It appears that there is an extra white space appended to the email address in your order table. Consequently, when attempting to view the invoice, our validation process detects this discrepancy and returns an error message. Please be assured that we have taken note of this issue and plan to address it in the upcoming release of J2Store 4.x.x. For your reference, please review the committed code changes in our J2Store repository:- https://github.com/J2Store4/j2store4/pull/92/files

mgopin3 commented 3 months ago

@mehdininja We believe the reported issue has been addressed. Could you please confirm that the problem is resolved on your end? If everything looks good, we'll go ahead and close this issue.

If you have any further questions or if there's anything else you'd like assistance with, please don't hesitate to let us know. We appreciate your feedback!