1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-27 02:09:54 +08:00

Stop using password field in .ini at all

This commit is contained in:
Andrey Zavadskiy
2016-12-22 15:41:06 +03:00
Unverified
parent b066a7d905
commit 4817d4bf10
-3
View File
@@ -68,7 +68,6 @@ namespace osu.Game
Dependencies.Cache(API = new APIAccess
{
Username = Config.Get<string>(OsuConfig.Username),
Password = Config.Get<string>(OsuConfig.Password),
Token = Config.Get<string>(OsuConfig.Token)
});
@@ -81,7 +80,6 @@ namespace osu.Game
{
case APIState.Online:
Config.Set(OsuConfig.Username, Config.Get<bool>(OsuConfig.SaveUsername) ? API.Username : string.Empty);
Config.Set(OsuConfig.Password, Config.Get<bool>(OsuConfig.SavePassword) ? API.Password : string.Empty);
break;
}
}
@@ -117,7 +115,6 @@ namespace osu.Game
//refresh token may have changed.
if (Config != null && API != null)
{
Config.Set(OsuConfig.Username, Config.Get<bool>(OsuConfig.SaveUsername) ? API.Username : string.Empty);
Config.Set(OsuConfig.Token, Config.Get<bool>(OsuConfig.SavePassword) ? API.Token : string.Empty);
Config.Save();
}