示例#1
0
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'))
示例#2
0
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"))
示例#3
0
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'))