Well the password is in the post history, so I would either make sure it was a 1 time thing or change it if it wasn’t a 1 time thing.
So for the actual question, you would need to share more of what you are trying to do, what you did so far and some code.
Reading this first will help you to get a better answer by helping us to understand the problem.