Пример #1
0
def new_token_user():
    user_id = request.args.get('user_id')
    if r_serv_db.exists('user_metadata:{}'.format(user_id)):
        generate_new_token(user_id)
    return redirect(url_for('settings.users_list'))
Пример #2
0
def new_token():
    generate_new_token(current_user.get_id())
    return redirect(url_for('settings.edit_profile'))