From 772683b4e2b1175406e2d80b9fa9694b47ede6eb Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 29 Jan 2014 14:14:15 +0400 Subject: fix #12 --- Juick/ViewModels/LoginViewModel.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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); } }); } -- cgit v1.2.3