I am making login and registration page for my android application. In this page I have a spinner with choices "Driver" and "Customer". Depending on the value of spinner, user should be registrated as Driver or Customer. However, when i register new user as driver, and then login with that driver's information, I can login both as Driver and Customer. For database I'm using firebase.
Here is my code
On top of spaghetti all covered in cheese, there was this tiny ad:
Download Free Java APIs to Work with Office Files and PDF