mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:17:51 +08:00
Show login overlay at main menu when 2FA is required
This commit is contained in:
parent
563f4a26b1
commit
bf3746daa8
@ -280,7 +280,7 @@ namespace osu.Game.Screens.Menu
|
||||
|
||||
sideFlashes.Delay(FADE_IN_DURATION).FadeIn(64, Easing.InQuint);
|
||||
}
|
||||
else if (!api.IsLoggedIn)
|
||||
else if (!api.IsLoggedIn || api.State.Value == APIState.RequiresSecondFactorAuth)
|
||||
{
|
||||
// copy out old action to avoid accidentally capturing logo.Action in closure, causing a self-reference loop.
|
||||
var previousAction = logo.Action;
|
||||
|
Loading…
Reference in New Issue
Block a user