This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from itsdangerous import URLSafeTimedSerializer | |
from project import app | |
def generate_confirmation_token(email): | |
serializer = URLSafeTimedSerializer(app.config['SECRET_KEY']) | |
return serializer.dumps(email, salt=app.config['SECURITY_PASSWORD_SALT']) |