Refactor forms and import other commonly used functions into package

This commit is contained in:
Matt Wright
2012-06-19 11:55:23 -04:00
parent 1f7c2625f7
commit a902530773
4 changed files with 51 additions and 22 deletions
+1
View File
@@ -35,6 +35,7 @@ def find_user_by_reset_token(token):
def send_reset_password_instructions(user):
url = url_for('flask_security.reset',
email=user.email,
reset_token=user.reset_password_token)
reset_link = request.url_root[:-1] + url