Skip to content

Commit

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

0 comments on commit 229d3a7

Please sign in to comment.