Flask-Security reset password

一世执手 提交于 2019-12-12 01:39:19

问题


I'm trying to use Flask-Security on a project. I've made may search on SO but I just can't find a way to simply implement a the reset password functionality. I just don't understand how to use the flask-security APi in this case.

I notice that all the template can be found on their github, I also check the source code but it's like a mystery.

If you have some good tips, advice or example on how to implement reset password it would be really kind.

Sorry for my bad english


回答1:


You need to turn on Flask-Security's SECURITY_RECOVERABLE setting. How exactly you do that depends on your code, but it's something along the lines of

app.config['SECURITY_RECOVERABLE'] = True

This will turn on a link to the password reset page.



来源:https://stackoverflow.com/questions/34310143/flask-security-reset-password

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!