From 00366f64a20445e6d5ac65d11f564052451185f4 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 1 Dec 2021 19:41:33 +0200 Subject: [PATCH] sdffsd --- files/routes/oauth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/oauth.py b/files/routes/oauth.py index 58fe568d6..fae4ecb0a 100644 --- a/files/routes/oauth.py +++ b/files/routes/oauth.py @@ -41,7 +41,7 @@ def authorize(v): def request_api_keys(v): new_app = OauthApp( - app_name=request.values.get('name'), + app_name=request.values.get('name').replace('<',''), redirect_uri=request.values.get('redirect_uri'), author_id=v.id, description=request.values.get("description")[:256] @@ -131,7 +131,7 @@ def admin_app_approve(v, aid): g.db.commit() - return {"message": f"{app.app_name} approved"} + return {"message": f"Application approved"} @app.post("/admin/app/revoke/")