Esempio n. 1
0
def verify_email(hash):

    email = db.is_hash_valid(hash)
    if email:
        db.validate_user(email)
        return render_template("auth/verify_success.html", email=email)
    else:
        return render_template("auth/verify_failed.html")
Esempio n. 2
0
def verify_email(hash):

    email = db.is_hash_valid(hash)
    if email:
        db.validate_user(email)
        return render_template('auth/verify_success.html', email=email)
    else:
        return render_template('auth/verify_failed.html')