def generate_confirmation_token(user):
 data = [str(user.id), md5(user.email)]
 return _security.confirm_serializer.dumps(data)

def generate_confirmation_token ( user ) : data = [ str ( user . id ) , md5 ( user . email ) ] return _security . confirm_serializer . dumps ( data )
generates a unique confirmation token for the specified user .