我正在尝试在Devise邮件程序发送的确认页面中显示用户密码.确认页面是默认页面
Welcome test0@test.com!
You can confirm your account email through the link below:
Confirm my account
Run Code Online (Sandbox Code Playgroud)
但是,我希望有
Welcome test0@test.com!
Your password is currently DASADSADS
You can confirm your account email through the link below:
Confirm my account
Run Code Online (Sandbox Code Playgroud)
如何在视图中访问用户对象?我是否需要使用自定义控制器覆盖邮件控制器?如果是这样,我如何判断当前邮件的方法是什么(尝试查看文档但找不到任何线索)?
我注意到在视图中使用了@email和@resource.我可以使用其中任何一个以未散列的形式访问当前密码吗?
请注意,我手动发送此电子邮件 user.find(1).send_confirmation_instructions