mirror of
https://github.com/ppy/osu.git
synced 2025-02-06 22:33:13 +08:00
Merge pull request #31362 from CuNO3/master
Ignore whitespace while 2FA authentication
This commit is contained in:
commit
b09a34cfa8
@ -121,9 +121,11 @@ namespace osu.Game.Overlays.Login
|
|||||||
|
|
||||||
codeTextBox.Current.BindValueChanged(code =>
|
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;
|
codeTextBox.Current.Disabled = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user