Is it a text or markdown email template? If it's markdown you will need to escape a lot of special characters.
Special Characters In Password
Hello
I am working on a project where I generate a password for a user and include some special characters in the user's password.
The characters are: '#_%*+=-' (excluding the quotes)
I then send the user this password in an HTML email.
The weird behavior: A few times, when the user enters the password, it does not work. Most of the times, it works just fine.
Things i have tried:
-
Created a phpunit script to test the whole flow. I saved the generated password in plain in the db and use it to make my login request. Tested for over 15k users, works just fine
-
Tested manually several times. Reproduced the error once. The password hash was different from the plain password. The issue here was the use of the ^ special character.
Leads:
-
The HTML rendering is wrong in the email. However, the special characters used should not cause this.
-
The user is making a mistake when copy/pasting
Any thoughts?
Please or to participate in this conversation.