def generate_email_change_token(self, new_email, expiration=3600):
s = Serializer(current_app.config['SECRET_KEY'], expiration)
return s.dumps({'change_email': self.id, 'new_email': new_email})
models.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录