Commit ab77178b authored by Sam's avatar Sam

Commit v8

parent b2c43ec1
......@@ -173,11 +173,18 @@ public class register extends AppCompatActivity implements View.OnClickListener
password_EditText.setText("");
password_EditText2.setText("");
} else if (response.equals("failure")) {
}
else if(response.equals("special_characters")){
snackbarAlert("Please remove special Characters", true);
}
else if (response.equals("failure")) {
snackbarAlert("Something Went Wrong!", true);
} else if (response.equals("username_taken")) {
snackbarAlert("Username is already taken!", true);
}
else{
snackbarAlert("Something Went Wrong, make sure you have a internet connection!", true);
}
Log.d("response", response);
}, error -> Log.d("error1", error.toString())) {
......
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