Commit 536199d3 authored by sam.pople's avatar sam.pople

tryagain2

parent 8919500f
...@@ -30,7 +30,7 @@ public class Login extends AppCompatActivity { ...@@ -30,7 +30,7 @@ public class Login extends AppCompatActivity {
String password = loginpassword.getText().toString(); String password = loginpassword.getText().toString();
if (username.equals("") || password.equals("")) if (username.equals("") || password.equals(""))
Toast.makeText(Login.this, "The username or password is incorrect. Please try again.", Toast.LENGTH_SHORT).show(); Toast.makeText(Login.this, "Please input a username and password.", Toast.LENGTH_SHORT).show();
else { else {
Boolean checkusername = database.userpass(username, password); Boolean checkusername = database.userpass(username, password);
......
...@@ -40,7 +40,7 @@ public class signup extends AppCompatActivity { ...@@ -40,7 +40,7 @@ public class signup extends AppCompatActivity {
String repeat = repeatthepassword.getText().toString(); String repeat = repeatthepassword.getText().toString();
if(username.equals("")||password.equals("")||repeat.equals("")) if(username.equals("")||password.equals("")||repeat.equals(""))
Toast.makeText(signup.this, "Username or Password is incorrect. Please try again.", Toast.LENGTH_SHORT).show(); Toast.makeText(signup.this, "Please input a username and password.", Toast.LENGTH_SHORT).show();
else{ else{
if(password.equals(repeat)){ if(password.equals(repeat)){
Boolean usercheck = database.usercheck(username); Boolean usercheck = database.usercheck(username);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment