diff --git a/Klient/Klient/Klient.Android/MainActivity.cs b/Klient/Klient/Klient.Android/MainActivity.cs index e286b2d..b2a2d67 100644 --- a/Klient/Klient/Klient.Android/MainActivity.cs +++ b/Klient/Klient/Klient.Android/MainActivity.cs @@ -51,6 +51,12 @@ namespace Klient.Droid FindViewById(Resource.Id.ErrorLogIn).Text = "Hasło musi mieć od 3 do 12 znaków!"; FindViewById(Resource.Id.Password).Text = ""; } + else if (string.IsNullOrWhiteSpace(new NetworkCredential("", Password).Password)) + { + FindViewById(Resource.Id.ErrorLogIn).Text = "Hasło musi mieć od 3 do 12 znaków!"; + FindViewById(Resource.Id.Login).Text = ""; + FindViewById(Resource.Id.Password).Text = ""; + } else { var values = new Dictionary