0ad/source/lobby
Dunedan 38e4cdc755
Fix password change for certain usernames
This fixes the ability for users with uppercase letters in their
username to change their passwords, which wasn't possible before on
non-Windows platforms. The underlying issue for that is
https://github.com/processone/ejabberd/issues/4377 and in addition some
inconsistent normalization of usernames in password change requests
by gloox. This commit works around that by always using the local JID
part as username for password requests, which got the nodeprep string
profile already applied.

It also fixes a problem that Windows users which were able to change
their passwords, weren't able to login afterwards anymore, unless they
typed their username in all lowercase in the login form. This was caused
by using the all lowercase username as input for the password hash
function, instead of using the username in the user supplied case.

Fixes #7796

(cherry picked from commit 638391d7ab)
Signed-off-by: Itms <itms@wildfiregames.com>
2025-06-19 16:53:33 +02:00
..
scripting Fix password change for certain usernames 2025-06-19 16:53:33 +02:00
Globals.cpp Revert non-ASCII characters from source and configuration files introduced in 157c6af18e. 2023-12-03 00:30:12 +00:00
IXmppClient.h Fix password change for certain usernames 2025-06-19 16:53:33 +02:00
StanzaExtensions.cpp Remove glooxwrapper 2024-11-25 20:01:00 +01:00
StanzaExtensions.h Remove glooxwrapper 2024-11-25 20:01:00 +01:00
XmppClient.cpp Fix password change for certain usernames 2025-06-19 16:53:33 +02:00
XmppClient.h Fix password change for certain usernames 2025-06-19 16:53:33 +02:00