1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 20:53:00 +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
commit 5df9f06480
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,7 +163,13 @@ namespace osu.Game.Online.API
userReq.Failure += ex => 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"); log.Add(@"Login no longer valid");
Logout(); Logout();