Esempio n. 1
0
def token_create():
    desc = request.form.get('description')
    if not desc:
        flash('You must enter a description for the token')
        return redirect(url_for('settings.index'))

    v = current_user.create_token(desc)
    flash('New token created: ' + v)
    flash(
        'Make sure you save the value, you won\'t be able to access it again.')
    return redirect(url_for('settings.index'))
Esempio n. 2
0
def me():
    token = current_user.create_token()
    print('foo')
    return render_template('me.html', token=token)
Esempio n. 3
0
def me():
    token = current_user.create_token()
    return render_template("me.html", token=token)