Esempio n. 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
Esempio n. 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
Esempio n. 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
Esempio n. 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