示例#1
0
def receive_before_update(mapper, connection, target):
    target.password = bcrypt.generate_password_hash(target.password)
    target.api_key = urandom(40).encode('hex')
示例#2
0
def receive_before_update(mapper, connection, target):
    target.password = bcrypt.generate_password_hash(target.password)
    target.api_key = urandom(40).encode('hex')