简体   繁体   English

如何为Parse托管的Parse应用添加自定义密码重置模板?

[英]How to add custom password reset template for Parse app hosted on Parse?

I have a web application that I am hosting on Parse with a subdomain "appname".parseapp.com url (The quotes are not actually there, and that's not the actual link to my app). 我有一个Web应用程序,我在Parse上托管了一个子域“ appname” .parseapp.com url(引号实际上不存在,并且这不是指向我的应用程序的实际链接)。 Supposedly, I am able to use my own templates for things like the password reset form, however, I haven't had any success. 据说,我可以使用自己的模板来处理诸如密码重设表单之类的事情,但是我没有取得任何成功。 I downloaded the template, modified it, and put it in my public directory then deployed it. 我下载了模板,对其进行了修改,然后将其放在我的公共目录中,然后进行了部署。 I set the Parse Frame URL to the "appname".parseapp.com/user_management.html like it says after also putting the user_management.html file in my public directory, then I set the directory of password reset file in the Customize User-Facing Pages section as choose_password.html since it is right in the public directory. 我还将解析框架URL设置为“ appname” .parseapp.com / user_management.html,就像在将user_management.html文件也放置在我的公共目录中后说的那样,然后将密码重置文件的目录设置在Customize User-Facing中Pages部分为choose_password.html,因为它位于公共目录中。 The link sent to the email that attempts to reset the password somehow keeps being wrong and gives me a 404. I'll get a link like this: "appname".parseapp.com/user_management.html?link=%2Fapps%2Fschool-project%2Frequest_password_reset&token=TvIoEhOD8ZsWAP414jBCbY3OI&username=testuser 发送到尝试重设密码的电子邮件的链接一直不正确,并给了我404。我将获得如下链接:“ appname” .parseapp.com / user_management.html?link =%2Fapps%2Fschool- project%2Frequest_password_reset&token = TvIoEhOD8ZsWAP414jBCbY3OI&username = testuser

Any Idea why this isn't working correctly? 知道为什么这不能正常工作吗?

Figured out my mistake. 弄清楚我的错误。 I was supposed to include the entire link for the template not just the directory after the domain. 我应该包括模板的整个链接,而不仅仅是域之后的目录。 eg "appname".parseapp.com/choose_password.html rather than just /choose_password.html 例如“ appname” .parseapp.com / choose_password.html,而不只是/choose_password.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM