PSO-40 fixx

This commit is contained in:
Wojciech Przybyła 2021-01-11 14:16:51 +01:00
parent 42be667958
commit 46b97ec42f

View File

@ -103,7 +103,7 @@ namespace Klient.Droid
FindViewById<EditText>(Resource.Id.RepeatPassword).Text = ""; FindViewById<EditText>(Resource.Id.RepeatPassword).Text = "";
} }
else if (new NetworkCredential("", Password).Password.Length < 8 || new NetworkCredential("", Password).Password.Length > 20) else if (new NetworkCredential("", Password).Password.Length < 8 || new NetworkCredential("", Password).Password.Length > 20 || string.IsNullOrWhiteSpace(new NetworkCredential("", Password).Password))
{ {
FindViewById<TextView>(Resource.Id.ErrorRegister).Text = "Hasło musi mieć od 8 do 20 znaków!"; FindViewById<TextView>(Resource.Id.ErrorRegister).Text = "Hasło musi mieć od 8 do 20 znaków!";
FindViewById<EditText>(Resource.Id.NewPassword).Text = ""; FindViewById<EditText>(Resource.Id.NewPassword).Text = "";