Skip to content

Commit

Permalink
Fixed koltens mindstaking mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
gramcracker40 committed May 3, 2023
1 parent 34b5d99 commit 0595f83
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .flaskenv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FLASK_APP=app:app
FLASK_DEBUG=0
FLASK_DEBUG=1
PRODUCTION=0
DBHOST=postgresql://adminadminSECURE!!!:ThisIsProductionBaby!!@db:5432/greenwatch_production
SQL_PORT=5432
Expand Down
13 changes: 7 additions & 6 deletions UserInterface/api/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import * as Utils from "../js/utilities.js";
const token = `Bearer ${sessionStorage.getItem('access_token')}`;
let debugMode = false;

const default_headers = {
'Authorization': token,
'Content-Type': 'application/json'
}

const optionsPost = {
method: 'POST',
headers: {
Expand Down Expand Up @@ -94,9 +99,7 @@ export class GreenhouseProxy {
// Get all users
async getUsers() {
const options = {
headers: {
'Authorization': token
}
headers: default_headers
}

try {
Expand Down Expand Up @@ -165,9 +168,7 @@ export class GreenhouseProxy {
// Get all rooms
async getRooms() {
const options = {
headers: {
'Authorization': token
}
headers: default_headers
}

try {
Expand Down
2 changes: 1 addition & 1 deletion resources/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

@blp.route("/register")
class UserRegister(MethodView):
@jwt_required()
#@jwt_required()
@blp.arguments(UserRegisterSchema)
def post(self, user_data):
'''
Expand Down

0 comments on commit 0595f83

Please sign in to comment.