def __init__(self, username, email, password):
self.username = username
self.email = email
self.password = bcrypt.hashpw(password.encode('utf-8'),
bcrypt.gensalt()).decode('utf-8')
# decoding to re-encode later to prevent bytestring confusion
# in python3
self.active = False
评论列表
文章目录