def tickets_token(token=None): view = ProductView.get_by_token(token) if view: session['ticket_token'] = token return redirect(url_for('tickets.main', flow=view.name)) if 'ticket_token' in session: del session['ticket_token'] invalid_tokens.inc() flash('Ticket token was invalid') return redirect(url_for('tickets.main'))
def tickets_token(token=None): view = ProductView.get_by_token(token) if view: session["ticket_token"] = token return redirect(url_for("tickets.main", flow=view.name)) if "ticket_token" in session: del session["ticket_token"] invalid_tokens.inc() flash("Ticket token was invalid") return redirect(url_for("tickets.main"))
def tickets_token(token=None): view = ProductView.get_by_token(token) if view: session['ticket_token'] = token return redirect(url_for('tickets.main', flow=view.name)) if 'ticket_token' in session: del session['ticket_token'] invalid_tokens.inc() flash('Ticket token was invalid') return redirect(url_for('tickets.main'))