diff options
| author | Pinapelz <yukais@pinapelz.com> | 2023-12-14 09:11:38 -0800 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2023-12-14 09:11:38 -0800 |
| commit | 5eb7b777f965192cb6beede5e3f5139b5ca6b11f (patch) | |
| tree | 3daf002c3b1113436bd140ee32b201fd066bad8e | |
| parent | d38a7cf702554b6814e828b3a6bc4409f2ae432a (diff) | |
remove auth header from clear sessions endpointtesting
| -rw-r--r-- | api/app.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -211,10 +211,9 @@ def verify_answers(): @app.route("/api/clear_sessions") def clear_sessions(): auth = request.headers.get("Authorization") - stored_auth = os.environ.get("AUTHORIZATION") cron_secret = os.environ.get("CRON_SECRET") print("Checking if " + auth + " matches " + cron_secret) - if auth.strip() != stored_auth.strip() or auth.strip() != cron_secret.strip(): + if auth.strip() != cron_secret.strip(): return jsonify({"error": "Unauthorized"}), 401 server = create_database_connection() if server.check_health() is False: |
