Handle bad logins

This commit is contained in:
Pat Hartl 2023-01-26 01:08:34 -06:00
parent 1fc07ca194
commit 7f98697db2

View file

@ -70,6 +70,9 @@ namespace LANCommander.PlaynitePlugin
Password = password
}));
if (String.IsNullOrWhiteSpace(response.Data.AccessToken))
throw new WebException("Invalid username or password");
switch (response.StatusCode)
{
case HttpStatusCode.OK: