fix auth for add_nut...
This commit is contained in:
parent
449dba1d7e
commit
ffa6944e7b
@ -99,7 +99,7 @@ def add_lm():
|
|||||||
|
|
||||||
|
|
||||||
@app.route('/add_nutrition', methods=['POST'])
|
@app.route('/add_nutrition', methods=['POST'])
|
||||||
@oidc.accept_token(require_token=True, scopes_required=['openid'])
|
@oidc.require_login
|
||||||
def add_nutrition():
|
def add_nutrition():
|
||||||
food = request.form.get('food')
|
food = request.form.get('food')
|
||||||
kcal = float(request.form.get('kcal'))
|
kcal = float(request.form.get('kcal'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user