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")
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')