예제 #1
0
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
예제 #2
0
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
예제 #3
0
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
예제 #4
0
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