Skip to content
Snippets Groups Projects
Commit eed93099 authored by Erin (Josh) Rigler's avatar Erin (Josh) Rigler
Browse files

Merge branch '94-login-bug' into 'master'

fix login bug

Closes #94

See merge request !231
parents f5d3ed22 1a9e154f
No related branches found
No related tags found
1 merge request!231fix login bug
Pipeline #268242 passed
...@@ -186,7 +186,7 @@ async def authorize(request: Request): ...@@ -186,7 +186,7 @@ async def authorize(request: Request):
description="Redirect to OpenID provider.", description="Redirect to OpenID provider.",
) )
async def login(request: Request): async def login(request: Request):
redirect_uri = request.url_for("authorize") redirect_uri = str(request.url_for("authorize"))
if "127.0.0.1" not in redirect_uri: if "127.0.0.1" not in redirect_uri:
# 127.0.0.1 used for local dev, all others use https # 127.0.0.1 used for local dev, all others use https
redirect_uri = redirect_uri.replace("http://", "https://") redirect_uri = redirect_uri.replace("http://", "https://")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment