def __check_code(userid, code): # Check code aginst DB # Return bool d_code = MySQL.get_act_code(userid) if d_code == code: kwlog.log("Activation code matches") return True else: kwlog.log("Activation code does not match") return False