Skip to content
Snippets Groups Projects
Verified Commit 03c43235 authored by Jonas Leder's avatar Jonas Leder
Browse files

fix error 500 on login

parent 5446d867
No related branches found
No related tags found
No related merge requests found
Pipeline #7107 passed
...@@ -94,13 +94,17 @@ except: ...@@ -94,13 +94,17 @@ except:
passwordProtected = False passwordProtected = False
password = "" password = ""
GITHUB_CLIENT_SECRET = ""
GITHUB_CLIENT_ID = ""
GOOGLE_CLIENT_SECRET = ""
GOOGLE_CLIENT_ID = ""
if(loginEnabled): if(loginEnabled):
try: #Try to get the oauth keys, if it fails, abort and print a message to console try: #Try to get the oauth keys, if it fails, abort and print a message to console
if(loginType == "google"): if(loginType == "google"):
GOOGLE_CLIENT_SECRET = environ['GOOGLE_CLIENT_SECRET'] GOOGLE_CLIENT_SECRET = environ['GOOGLE_CLIENT_SECRET']
GOOGLE_CLIENT_ID = environ['GOOGLE_CLIENT_ID'] GOOGLE_CLIENT_ID = environ['GOOGLE_CLIENT_ID']
if(loginType == "github"): if(loginType == "github"):
GITHUB_CLIENT_SECRET = environ['GITHUB_CLIENT_ID'] GITHUB_CLIENT_ID = environ['GITHUB_CLIENT_ID']
GITHUB_CLIENT_SECRET = environ['GITHUB_CLIENT_SECRET'] GITHUB_CLIENT_SECRET = environ['GITHUB_CLIENT_SECRET']
except: except:
print("please set the oauth keys and run again.") print("please set the oauth keys and run again.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment