I'm attempting to display a users password along in his confirmation page sent by the Devise mailer. The confirmation page is the default
Welcome [email protected]!
You can confirm your account email through the link below:
Confirm my account
However, I wish to have
Welcome [email protected]!
Your password is currently DASADSADS
You can confirm your account email through the link below:
Confirm my account
How do I access the user object in the view? Do I need to override the mailer controller with a custom one? If so, how do I tell what the methods of the current mailer do (tried looking at documentation but can't find any clues)?
I noticed that @email and @resource are used in the view. Can I use any of these to access the current password in its unhashed form?
Note that I am sending this email manually with user.find(1).send_confirmation_instructions