1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-20 10:25:30 +08:00

Ignore whitespace while 2FA authentication

This commit is contained in:
CuNO3 2024-12-31 10:43:48 +08:00
parent 10ee2e28c2
commit 22c8229993

View File

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