def generate_reset_password_token(user):
 password_hash = (md5(user.password) if user.password else None)
 data = [str(user.id), password_hash]
 return _security.reset_serializer.dumps(data)

def generate_reset_password_token ( user ) : password_hash = ( md5 ( user . password ) if user . password else None ) data = [ str ( user . id ) , password_hash ] return _security . reset_serializer . dumps ( data )
generates a unique reset password token for the specified user .