Handle bad logins
This commit is contained in:
parent
1fc07ca194
commit
7f98697db2
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue