MeteorJS密码帐户重置模板未显示

时间:2022-11-15 12:22:02

I have password reset and that works fine, I can enter email and click send and got the email perfectly. However, the link in the email goes like this:

我有密码重置,工作正常,我可以输入电子邮件,然后单击发送,并完美地收到电子邮件。但是,电子邮件中的链接如下:

http://localhost:3000/#/reset-password/6wOC1k8CeqPWrWltwbu-LvsoNh7R5SiUFu_RJb_sPEk

When I click it, it goes directly to my home page. I am not sure what to do or where to add the code below:

当我点击它时,它会直接进入我的主页。我不知道该做什么或在哪里添加以下代码:

<template name="ResetPassword">
    {{#if resetPassword}}
    <form action="/reset-password"  id="resetPasswordForm" method="post">
        <input id="resetPasswordPassword" name="password" placeholder="New Password" type="password" >
        <input id="resetPasswordPasswordConfirm" name="password-confirm" placeholder="Confirm" type="password" >
        <input class="btn-submit" type="submit" value="Reset">
    </form>
    <!-- end #reset-password-form -->
    {{/if}}
</template>

In order for the reset password interface to show up. Currently I added the code above in a file called "resetpass.html" and then add the template name "ResetPassword" in the iron router but still not showing. Please help thank you.

为了显示重置密码界面。目前,我将上面的代码添加到名为“resetpass.html”的文件中,然后在铁路由器中添加模板名称“ResetPassword”,但仍未显示。请帮忙谢谢。

1 个解决方案

#1


0  

Ignore this question, I sorted it out. The the template need to be added in the home page in order for the reset password template to show up :)

忽略这个问题,我把它整理出来了。需要在主页中添加模板才能显示重置密码模板:)

#1


0  

Ignore this question, I sorted it out. The the template need to be added in the home page in order for the reset password template to show up :)

忽略这个问题,我把它整理出来了。需要在主页中添加模板才能显示重置密码模板:)