コード例 #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
ファイル: updateAccount.py プロジェクト: mr7657/Backend
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
ファイル: checkLogin.py プロジェクト: KitchenWizard/Backend
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
ファイル: checkLogin.py プロジェクト: mr7657/Backend
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