mirror of
https://github.com/ppy/osu
synced 2025-03-04 18:40:24 +00:00
When we have empty login, api.Token becames empty
So we can't sign in having Token without login
This commit is contained in:
parent
4817d4bf10
commit
7c96102229
@ -68,7 +68,7 @@ namespace osu.Game
|
||||
Dependencies.Cache(API = new APIAccess
|
||||
{
|
||||
Username = Config.Get<string>(OsuConfig.Username),
|
||||
Token = Config.Get<string>(OsuConfig.Token)
|
||||
Token = string.IsNullOrEmpty(Config.Get<string>(OsuConfig.Username)) ? string.Empty : Config.Get<string>(OsuConfig.Token)
|
||||
});
|
||||
|
||||
API.Register(this);
|
||||
|
Loading…
Reference in New Issue
Block a user