diff options
author | Vitaly Takmazov | 2014-01-29 14:14:15 +0400 |
---|---|---|
committer | Vitaly Takmazov | 2014-01-29 14:14:15 +0400 |
commit | 772683b4e2b1175406e2d80b9fa9694b47ede6eb (patch) | |
tree | be6fe0db970907d1845e822a9599ce1e122702b5 | |
parent | f693efdee7e40e362b441bde287dc16bcced8ee1 (diff) |
fix #12
-rw-r--r-- | Juick/ViewModels/LoginViewModel.cs | 11 |
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); } }); } |