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

Commit 2073987

Browse files
committed
Fix:looks like a good workaround for the missing https
1 parent f3e152a commit 2073987

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

models/db.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,3 +687,8 @@ def _create_access_token(data: dict, expires=None, scopes=None) -> bytes:
687687

688688
# decode here decodes the byte str to a normal str not the token
689689
return encoded_jwt
690+
691+
692+
# This **may** be a workaround for the bad urls in email resets
693+
if os.environ.get("LOAD_BALANCER_HOST", "") == "runestone.academy":
694+
request.env.wsgi_url_scheme = "https"

0 commit comments

Comments
 (0)