Exemplo n.º 1
0
def getAllCredentials():
    if request.method == 'POST':

        print("REQUEST: ", request.json)
        return CredentialsHandler().insertCredentialsJSON(request.json)
    else:
        return CredentialsHandler().getAllCredentials()
Exemplo n.º 2
0
def getUserByCredentials():
    if request.method == 'POST':

        print(request.json)
        print(request.args)
        return CredentialsHandler().getUserByCredentials(request.json)
    else:
        print(request.json)
        print("HERE")
        print(request.args)
        print(request.args.get('cuser'))
        return CredentialsHandler().getUserByCredentials(request.args)
Exemplo n.º 3
0
def getCredentialsByEmai(cemail):  #
    return CredentialsHandler().getCredentialsByEmail(cemail)  #
Exemplo n.º 4
0
def getCredentialsByPassword(cpassword):  #
    return CredentialsHandler().getCredentialsByPassword(cpassword)  #
Exemplo n.º 5
0
def getCredentialsById(cid):
    return CredentialsHandler().getCredentialsById(cid)
Exemplo n.º 6
0
def getCredentialsByEmail(email):
    return CredentialsHandler().getCredentialsByEmail(email)
Exemplo n.º 7
0
def getCredentialsByUsername(username):
    return CredentialsHandler().getCredentialsByUsername(username)