문제

By default devise sends this confirmation email:

Welcome user@email.com!

You can confirm your account email through the link below:

Confirm my account

I'd like it to be:

Welcome user@email.com!

Email: user@email.com

Password: xxxxxxxxx

You can confirm your account email through the link below:

Confirm my account

How can I set this up in app/views/confirmable/mailer/confirmation_instructions.html.erb? and How can I display the password since it has already been encrypted?

도움이 되었습니까?

해결책

I don't think this would be possible, since the password stored in the database would be encrypted by Devise.

In addition you shouldn't want to be e-mailing the user his password in plain-text.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top