Exemplo n.º 1
0
def event_rsvps():
    event     = events.get(request.args.get('ID'))
    pennkeys  = events.get_rsvps(request.args.get('ID'))
    attendees = []
    if pennkeys is not None and len(pennkeys) > 0:
        attendees = [ users.get(pk) for pk in pennkeys ]
    return render_template('admin/event_rsvps.html', event=event, attendees=attendees)
Exemplo n.º 2
0
def verify():
    token = request.args.get('token')
    if token is None:
        return redirect(url_for('need_verification'))

    user = users.get(token=token)

    if user is None:
        abort(404)
    else:
        users.verify(user['pennkey'])
        user['verified'] = True
        session['user'] = user
        return redirect(url_for('hub'))