Jump to content

How to fix Bonjour {firstname} {lastname}


samz

Recommended Posts

  • 4 weeks later...
On 10/5/2020 at 10:50 PM, Crezzur said:

Hey,

You can find a bug-fix here:

 

I don't think that bug-fix works to fix all the cases such error appears. 

I have the same errors and I don't have users with emails written in ALL CAPS (as that post mentioned above implies as being the bug). 

I'm interested to see a solution to this if someone can chime in, please? 

LATER EDIT ... I checked more thoroughly again, indeed the issue was with the capital letters anywhere in the domain part of the address. 

Thank you @Crezzur

Edited by Steve Lorenzo
tested more, found results (see edit history)
Link to comment
Share on other sites

In my case, this problem appears when the typed email is not all lowercase.

This JAVASCRIPT trims and converts to lowercase the value of all email type INPUT when the focus leaves the field. So it should fix this problem:

String.prototype.trim=function(){return(this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""));}

var mailA=document.querySelectorAll("input[type=email]");
for(var i=0;i<mailA.length;i++){
 mailA[i].onblur=function(){
  this.value=this.value.toLowerCase().trim();
  console.log("["+this.value+"]");
 }
}

Tested OK on PRESTASHOP 1.7.6.8

  • Thanks 1
Link to comment
Share on other sites

  • 7 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...