Esempio n. 1
0
def login(email):
    email = str(email)
    if(utils.emailAuth(email) == True):
        print email + " Passed auth"
        fullname = utils.userFirst(email) + " " + utils.userLast(email)
        return rate(email, fullname)
    else:
        print email + " Failed auth"
        return redirect(url_for("index", failedpass = True))
Esempio n. 2
0
def login(email):
    email = str(email)
    if(utils.emailAuth(email) == True):
        print email + " Passed auth"
        fullname = utils.userFirst(email) + " " + utils.userLast(email)
        global useremail
        useremail = email
        return rate(email, fullname)
        
    else:
        print email + " Failed auth"
        failedpass = True
        return index(failedpass = True)