Commit 8523c5ae authored by sam.pople's avatar sam.pople

try2

parent c1cf2e54
...@@ -28,7 +28,7 @@ public class signup extends AppCompatActivity { ...@@ -28,7 +28,7 @@ public class signup extends AppCompatActivity {
setContentView(R.layout.signup); setContentView(R.layout.signup);
EditText signupusername = (EditText)findViewById(R.id.signupusername); EditText signupusername = (EditText)findViewById(R.id.signupusername);
EditText signuppassword = (EditText)findViewById(R.id.signuppassword); EditText signuppassword = (EditText)findViewById(R.id.signuppassword);
EditText repeatpassword = (EditText)findViewById(R.id.repeatpassword); EditText repeatthepassword = (EditText)findViewById(R.id.repeatpassword);
Button signupsubmit = (Button)findViewById(R.id.signupsubmit); Button signupsubmit = (Button)findViewById(R.id.signupsubmit);
Button signupback = (Button)findViewById(R.id.signupback); Button signupback = (Button)findViewById(R.id.signupback);
database = new Database(this); database = new Database(this);
...@@ -37,7 +37,7 @@ public class signup extends AppCompatActivity { ...@@ -37,7 +37,7 @@ public class signup extends AppCompatActivity {
public void onClick(View view) { public void onClick(View view) {
String username = signupusername.getText().toString(); String username = signupusername.getText().toString();
String password = signuppassword.getText().toString(); String password = signuppassword.getText().toString();
String repeat = repeatpassword.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, "Username or Password is incorrect. Please try again.", Toast.LENGTH_SHORT).show();
......
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