I have a project that is built on LocomtiveCMS, which already has reset password functionality built in. However, the reset password email it currently sends has just a basic skeleton wording.

How do I make a custom message to use in the email sent out for resetting a password?

有帮助吗?

解决方案

Inside your main app, all you have to do is to add a new file at this location: /app/views/locomotive/devise_mailer/reset_password_instructions.html.haml.

After a restart of your server, Devise should use this file as the new template for the reset password instructions.

We did that for LocomotiveHosting.com (which is built on top on the LocomotiveCMS engine) and it works well.

Thanks!

Did

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top