1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 11:42:54 +08:00

Revert some changes

This commit is contained in:
Berkan Diler 2024-03-05 17:18:59 +01:00
parent 5965db4fd7
commit d0f7ab3316

View File

@ -39,8 +39,8 @@ namespace osu.Game.Online.API
internal void AuthenticateWithLogin(string username, string password)
{
ArgumentException.ThrowIfNullOrEmpty(username);
ArgumentException.ThrowIfNullOrEmpty(password);
if (string.IsNullOrEmpty(username)) throw new ArgumentException("Missing username.");
if (string.IsNullOrEmpty(password)) throw new ArgumentException("Missing password.");
var accessTokenRequest = new AccessTokenRequestPassword(username, password)
{