Skip to content

Commit

Permalink
Reorganized backend logic on REACT_APP_DEVAUTH env var
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Tignor authored and Thomas Tignor committed Dec 7, 2023
1 parent 32a4671 commit 7fd7b4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tdrs-backend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copy this file to `.env` and replace variables as needed
#

DEVELOPMENT=1
#REACT_APP_DEVAUTH=1

# ##
# Required environment variables
Expand Down
2 changes: 1 addition & 1 deletion tdrs-backend/tdpservice/users/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class DevAuthentication(BaseAuthentication):
def authenticate(self, request):
if not os.environ.get('DEVELOPMENT'):
if not os.environ.get('REACT_APP_DEVAUTH'):
return None
logging.debug(f"{self.__class__.__name__}: {request} ; {request.data}")
requser = request.data.get("user")
Expand Down

0 comments on commit 7fd7b4d

Please sign in to comment.