def __check_act_status(userid): # Check if account is activated # Return bool data = MySQL.get_active_status(userid) if str(data[0]) == '1': return True else: return False
def check_active_status(username): # Checks if account has been activated # Return bool if MySQL.get_active_status(username)[0] == 0: kwlog.log("Account not activated") return False else: kwlog.log("Account activated") return True