Skip to content

Commit

Permalink
Revert "Add temp login error response (cd test)"
Browse files Browse the repository at this point in the history
This reverts commit 229d3a7.
  • Loading branch information
nnayk committed Dec 4, 2023
1 parent 229d3a7 commit e60cd9e
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Backend/backend.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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.
Expand Down Expand Up @@ -110,7 +106,7 @@ def login():
"access_token": access_token,
}
),
500,
200,
)
else:
# Incorrect password
Expand Down

0 comments on commit e60cd9e

Please sign in to comment.