Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: LeChaland on December 22, 2023, 03:17:48 PM

Title: Special Characters
Post by: LeChaland on December 22, 2023, 03:17:48 PM
Smf : 2.1.4
PHP on server : 8.1
Server Charset : utf-8
Sql Charset : utf-8 (mariadb)
No display problem in the forum.

Hello,  :)

I discovered that when a new user use special characters in his login name such as ô é è at the moment to login there is a wrong password problem.

Replace the special characters by normal one resolve the problem.

I searched in the admin if there is a way to block the use of the special characters in the login name when register but found nothing to do the trick.

Is there a way or fix to set this feature to avoid future problems ?

Thanks in advance.

I wish you happy holidays and merry christmas.
Title: Re: Special Characters
Post by: Sesquipedalian on December 26, 2023, 04:50:58 PM
I cannot reproduce this problem on an unmodified SMF forum. Unicode characters in usernames are fully supported by SMF.

Since you are having problems with Unicode characters, that mostly likely means that some changes to your forum are causing problems.

Title: Re: Special Characters
Post by: Doug Heffernan on December 26, 2023, 05:30:06 PM
I can't reproduce this either. What was the latest change done to the forum prior to this happening?

Quote from: LeChaland on December 22, 2023, 03:17:48 PMI discovered that when a new user use special characters in his login name such as ô é è at the moment to login there is a wrong password problem.
Title: Re: Special Characters
Post by: LeChaland on December 27, 2023, 05:38:53 PM
Good morning.

I had members whose login name contained special characters and they all had unrecognized password problems. So I thought there was a problem at this level because once their names were changed, everything was fine...

Faced with your response, I also did a test with this login name:

Jérôme d'artagnan

And indeed everything seems to work, validation link and password.

So I just have to apologize to you and need to do my investigation into what seems to be a conspiracy  ::) ...

Thank you so much.
Title: Re: Special Characters
Post by: Sesquipedalian on December 27, 2023, 08:02:12 PM
If you are able to get more information about how to reproduce the problem, let us know.
Title: Re: Special Characters
Post by: Sesquipedalian on December 27, 2023, 08:06:27 PM
Also:

Quote from: LeChaland on December 27, 2023, 05:38:53 PMonce their names were changed, everything was fine...

Changing their usernames would have prompted a password reset. That may explain why it started working: they simply updated their passwords.
Title: Re: Special Characters
Post by: Kindred on December 27, 2023, 09:52:28 PM
If you upgraded, but did not change the cookie name,  that could have triggered the problem that you were seeing.

If they had used the lost password function, it probably would have worked as well
Title: Re: Special Characters
Post by: LeChaland on December 28, 2023, 04:32:41 AM
Quote from: Sesquipedalian on December 27, 2023, 08:02:12 PMIf you are able to get more information about how to reproduce the problem, let us know.

Of course, if the problem occurs a new time, i will make more tests and inform you.