Skip to content
Snippets Groups Projects
Commit e18f1fec authored by chan24's avatar chan24
Browse files

register activity toast

parent 4eb2f30c
No related branches found
No related tags found
No related merge requests found
......@@ -49,12 +49,17 @@ public class RegisterActivity extends AppCompatActivity {
Toast.makeText(getApplicationContext(),"Enter Name",Toast.LENGTH_SHORT).show();
return;
}
else if (p.isEmpty()){
if (p.isEmpty()){
Toast.makeText(getApplicationContext(),"Enter Password",Toast.LENGTH_SHORT).show();
return;
}
else if (m.isEmpty()){
if (p.length()<6){
Toast.makeText(getApplicationContext(),"Password must have greater than 6 characters",Toast.LENGTH_SHORT).show();
return;
}
if (m.isEmpty()){
Toast.makeText(getApplicationContext(),"Enter Password",Toast.LENGTH_SHORT).show();
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment