summaryrefslogtreecommitdiff
path: root/Juick
diff options
context:
space:
mode:
Diffstat (limited to 'Juick')
-rw-r--r--Juick/ViewModels/LoginViewModel.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/Juick/ViewModels/LoginViewModel.cs b/Juick/ViewModels/LoginViewModel.cs
index c0bf1f9..9589f08 100644
--- a/Juick/ViewModels/LoginViewModel.cs
+++ b/Juick/ViewModels/LoginViewModel.cs
@@ -62,9 +62,18 @@ namespace Juick.ViewModels
App.AppContext.EnableNotifications();
((App)Application.Current).NavigateTo(NextUri, true);
}
+ else if (response.StatusCode ==
+ HttpStatusCode.Forbidden)
+ {
+ MessageBox.Show(
+ "Invalid username or password",
+ "Error", MessageBoxButton.OK);
+ }
else
{
- MessageBox.Show("Invalid username or password", "Error", MessageBoxButton.OK);
+ MessageBox.Show(
+ response.StatusDescription,
+ "Error", MessageBoxButton.OK);
}
});
}