1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-30 04:23:21 +08:00

Merge pull request #31362 from CuNO3/master

Ignore whitespace while 2FA authentication
This commit is contained in:
Dean Herbert 2024-12-31 21:14:42 +09:00 committed by GitHub
commit b09a34cfa8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -121,9 +121,11 @@ namespace osu.Game.Overlays.Login
codeTextBox.Current.BindValueChanged(code =>
{
if (code.NewValue.Length == 8)
string trimmedCode = code.NewValue.Trim();
if (trimmedCode.Length == 8)
{
api.AuthenticateSecondFactor(code.NewValue);
api.AuthenticateSecondFactor(trimmedCode);
codeTextBox.Current.Disabled = true;
}
});