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
What's that smell? Hey, sniff this tiny ad:
Create Edit Print & Convert PDF Using Free API with Java