mirror of
https://github.com/ppy/osu.git
synced 2025-02-22 17:22:58 +08:00
Ignore whitespace while 2FA authentication
This commit is contained in:
parent
10ee2e28c2
commit
22c8229993
@ -121,9 +121,9 @@ namespace osu.Game.Overlays.Login
|
|||||||
|
|
||||||
codeTextBox.Current.BindValueChanged(code =>
|
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;
|
codeTextBox.Current.Disabled = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user