我正在使用许可进行授权,并且遇到了一个问题,其中发送给潜在新用户的文本和html电子邮件确认具有不同的确认网址 - 文本一个正常,而html一个导致路由错误:
No route matches [GET] "/confirm.35"
我配置错误了什么?我该如何解决这个问题?
谢谢!
以下是两封电子邮件
----==_mimepart_59d4f36d414c_6463fe23fe154401369b
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Please click below to confirm your new account.
http://localhost:3000/users/35/password/edit?token=d8dadce7863b92fdf27f7c7b474943c209173c6e
If you didn't request this, ignore this email.
----==_mimepart_59d4f36d414c_6463fe23fe154401369b
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
<p>Please click below to confirm your new account.</p>
<p>
<a href="http://localhost:3000/confirm.35?token=d8dadce7863b92fdf27f7c7b474943c209173c6e">Confirm account</a>
</p>
<p>If you didn't request this, ignore this email.</p>
----==_mimepart_59d4f36d414c_6463fe23fe154401369b--
答案 0 :(得分:0)
我的邮件程序有不同的txt vs html版本代码。我错误地认为Clearance已经建立了帐户确认电子邮件。谢谢!