Expose login errors from IAPIProvider and show on the login form

This commit is contained in:
Dean Herbert
2021-10-04 15:40:24 +09:00
parent 5aaafce597
commit 266b4c7124
5 changed files with 70 additions and 12 deletions

View File

@ -3,6 +3,7 @@
#nullable enable
using System;
using System.Threading.Tasks;
using osu.Framework.Bindables;
using osu.Game.Users;
@ -55,6 +56,11 @@ namespace osu.Game.Online.API
/// </summary>
string WebsiteRootUrl { get; }
/// <summary>
/// The last login error that occurred, if any.
/// </summary>
Exception? LastLoginError { get; }
/// <summary>
/// The current connection state of the API.
/// This is not thread-safe and should be scheduled locally if consumed from a drawable component.