From e60cd9e5d42dbb01b506d8bb01c50e5845a4f573 Mon Sep 17 00:00:00 2001 From: nnayk <79224511+nnayk@users.noreply.github.com> Date: Mon, 4 Dec 2023 10:52:22 -0800 Subject: [PATCH] Revert "Add temp login error response (cd test)" This reverts commit 229d3a7bd5b8a9fd7c3f54c20c777fea56b83ef4. --- Backend/backend.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Backend/backend.py b/Backend/backend.py index 419a790..a51ae61 100644 --- a/Backend/backend.py +++ b/Backend/backend.py @@ -1,11 +1,7 @@ import os from flask import Flask, request, jsonify -from flask_jwt_extended import ( - JWTManager, - create_access_token, - jwt_required, - get_jwt_identity, -) +from flask_jwt_extended import JWTManager, \ + create_access_token, jwt_required, get_jwt_identity import requests from flask_cors import CORS, cross_origin @@ -25,7 +21,7 @@ cors = CORS(app) app.config["CORS_HEADERS"] = "Content-Type" -app.config["JWT_SECRET_KEY"] = "CHANGE_TO_SECURE_KEY" +app.config['JWT_SECRET_KEY'] = "CHANGE_TO_SECURE_KEY" jwt = JWTManager(app) DB_ACCESS_URL = ( # This is where db_access.py is running. @@ -110,7 +106,7 @@ def login(): "access_token": access_token, } ), - 500, + 200, ) else: # Incorrect password