token stuff
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
Wolfgang Hottgenroth 2024-01-31 12:47:35 +01:00
parent e59b184da5
commit 367e76f9f1
Signed by: wn
GPG Key ID: 836E9E1192A6B132

View File

@ -105,7 +105,7 @@ def convert_decimal(value):
@app.route('/add_nutrition', methods=['POST'])
@oidc.accept_token(True)
@oidc.accept_token(require_token=True, scopes_required=['openid'])
def add_nutrition():
food = request.form.get('food')
kcal = convert_decimal(request.form.get('kcal'))