We're building an employee engagement survey platform with Ember JS and Firebase as the backend.
And we're using Firebase's Email and Password authentication to store our users' passwords. We're not storing the passwords in our firebase.
The application flows like this:
- Admin creates a survey and adds questions
- Admin adds users to the survey(with name, email and password)
- Admin sends emails to users
- Users login and respond to the survey
As can be seen from the workflow above, one of the features we need is an "Email Manager" which sends an email to users based on their survey status (ex: "Survey Not Started", "Survey Partially Completed" etc.)
In the email that we send we need to send the user's login credentials (i.e. email and password) to enable them to login. A sample email would look like this:
"
Please login to your survey at this URL - www.voiceupsurvey.com using the following access details:
Email: bobtony@yourcompany.com
Password: XA3kdt3
"
Would you have any suggestion as to how we can do this?
Specifically, I'm not sure how to query for a users password from the Firebase authentication store.