Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit

Permalink
Fix:looks like a good workaround for the missing https
Browse files Browse the repository at this point in the history
  • Loading branch information
bnmnetp committed Oct 14, 2022
1 parent f3e152a commit 2073987
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions models/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,3 +687,8 @@ def _create_access_token(data: dict, expires=None, scopes=None) -> bytes:

# decode here decodes the byte str to a normal str not the token
return encoded_jwt


# This **may** be a workaround for the bad urls in email resets
if os.environ.get("LOAD_BALANCER_HOST", "") == "runestone.academy":
request.env.wsgi_url_scheme = "https"

0 comments on commit 2073987

Please sign in to comment.