Commit c2ac6dc3 authored by chris.crook's avatar chris.crook

> added more admin functionality

parent 74242472
...@@ -90,10 +90,10 @@ public class AdminRegister extends AppCompatActivity { ...@@ -90,10 +90,10 @@ public class AdminRegister extends AppCompatActivity {
public void createadmin (View view){ public void createadmin (View view){
// //
String name = ((EditText) findViewById(R.id.Name_input)).getText().toString(); String name = ((EditText) findViewById(R.id.name_input2)).getText().toString();
String user = ((EditText) findViewById(R.id.Username_input)).getText().toString(); String user = ((EditText) findViewById(R.id.username_input2)).getText().toString();
String pass = ((EditText) findViewById(R.id.Password_input)).getText().toString(); String pass = ((EditText) findViewById(R.id.password_input2)).getText().toString();
String conf = ((EditText) findViewById(R.id.Password_confirm)).getText().toString(); String conf = ((EditText) findViewById(R.id.password_confirm2)).getText().toString();
if (name.equals("")){ if (name.equals("")){
Toast.makeText(getApplicationContext(), "Enter a Name", Toast.LENGTH_SHORT).show(); Toast.makeText(getApplicationContext(), "Enter a Name", Toast.LENGTH_SHORT).show();
return; return;
......
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