mirror of
https://github.com/ppy/osu.git
synced 2025-02-17 23:23:17 +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);
|
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.
|
// copy out old action to avoid accidentally capturing logo.Action in closure, causing a self-reference loop.
|
||||||
var previousAction = logo.Action;
|
var previousAction = logo.Action;
|
||||||
|
Loading…
Reference in New Issue
Block a user