1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-29 06:49:53 +08:00

Merge pull request #19136 from frenzibyte/handle-user-request-failure

Fix login overlay not displaying error message for disabled accounts
This commit is contained in:
Dean Herbert
2022-07-16 14:40:28 +09:00
committed by GitHub
Unverified
+7 -1
View File
@@ -163,7 +163,13 @@ namespace osu.Game.Online.API
userReq.Failure += ex =>
{
if (ex is WebException webException && webException.Message == @"Unauthorized")
if (ex is APIException)
{
LastLoginError = ex;
log.Add("Login failed on local user retrieval!");
Logout();
}
else if (ex is WebException webException && webException.Message == @"Unauthorized")
{
log.Add(@"Login no longer valid");
Logout();