Commit 33719a2a authored by christopher.foster's avatar christopher.foster

Login somewhat functional

parent 989e16e2
...@@ -71,6 +71,7 @@ public class DBConnector extends SQLiteOpenHelper { ...@@ -71,6 +71,7 @@ public class DBConnector extends SQLiteOpenHelper {
} }
public String finduser(String username) public String finduser(String username)
{ {
//error somewhere in this method
String string = null; String string = null;
String query = "Select * FROM " + TABLE_Users + " WHERE " + COLUMN_UserName + " = \"" + username + "\""; String query = "Select * FROM " + TABLE_Users + " WHERE " + COLUMN_UserName + " = \"" + username + "\"";
......
...@@ -49,6 +49,7 @@ public class MainActivity extends AppCompatActivity { ...@@ -49,6 +49,7 @@ public class MainActivity extends AppCompatActivity {
handler.addNewUser(Name.getText().toString(), UserName.getText().toString(), Password.getText().toString()); handler.addNewUser(Name.getText().toString(), UserName.getText().toString(), Password.getText().toString());
//Error Here
// Toast.makeText(getApplicationContext(), // Toast.makeText(getApplicationContext(),
// "registration complete\n" + handler.finduser(UserName.getText().toString()), Toast.LENGTH_LONG).show(); // "registration complete\n" + handler.finduser(UserName.getText().toString()), Toast.LENGTH_LONG).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