Put back validation and allowed for empty password
This commit is contained in:
parent
e0564d3e2b
commit
789239155f
2 changed files with 4 additions and 2 deletions
|
@ -56,7 +56,8 @@ public class HomeOwnerEditProfile extends AppCompatActivity {
|
||||||
TextView password = findViewById(R.id.PasswordInput);
|
TextView password = findViewById(R.id.PasswordInput);
|
||||||
|
|
||||||
//Checks for the fields
|
//Checks for the fields
|
||||||
if(firstname.getText().toString().length()>0
|
if((password.getText().toString().length()>=5 || password.getText().toString().equals(""))
|
||||||
|
&& firstname.getText().toString().length()>0
|
||||||
&& lastname.getText().toString().length()>0
|
&& lastname.getText().toString().length()>0
|
||||||
&& password.getText().toString().matches("[a-zA-Z0-9]*")
|
&& password.getText().toString().matches("[a-zA-Z0-9]*")
|
||||||
&& firstname.getText().toString().matches("[a-zA-Z]*")
|
&& firstname.getText().toString().matches("[a-zA-Z]*")
|
||||||
|
|
|
@ -74,7 +74,8 @@ public class ServiceProviderEditProfile extends AppCompatActivity {
|
||||||
CheckBox licensed = findViewById(R.id.LicensedInput);
|
CheckBox licensed = findViewById(R.id.LicensedInput);
|
||||||
|
|
||||||
//Checks for the fields
|
//Checks for the fields
|
||||||
if(firstname.getText().toString().length()>0
|
if((password.getText().toString().length()>=5 || password.getText().toString().equals(""))
|
||||||
|
&& firstname.getText().toString().length()>0
|
||||||
&& lastname.getText().toString().length()>0 && companyname.getText().toString().length()>0
|
&& lastname.getText().toString().length()>0 && companyname.getText().toString().length()>0
|
||||||
&& address.getText().toString().length()>0 && phonenumber.getText().toString().length()>0
|
&& address.getText().toString().length()>0 && phonenumber.getText().toString().length()>0
|
||||||
&& password.getText().toString().matches("[a-zA-Z0-9]*")
|
&& password.getText().toString().matches("[a-zA-Z0-9]*")
|
||||||
|
|
Loading…
Reference in a new issue