On my site, business vendors have an opportunity to sell our products wholesale in their own businesses.
However, before they do so, they have to apply to be a business vendor. (They give us their business license ID and various info so we can verify they are a legitimate business).
Once we approve their application, I want to give them a predetermined user ID and password to be able to log in, save their address, payment info, and to use their business discount. (they would be able to change the password after they've logged in the first time.)
I'm honestly not sure if this is the best way to do it and I'm drawing a blank on where to start. I already have my code pulling their information from the application and storing it in the database.
But I'm not sure how to pull it back out after however many days it takes the owner to approve the application, and proceed with the id and password.
Any thoughts, comments, ideas welcome!