Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix redirect to /setup on the last setup step #1807

Merged
merged 1 commit into from Jun 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions redash/handlers/authentication.py
Expand Up @@ -93,9 +93,9 @@ def forgot_password(org_slug=None):
def login(org_slug=None):
# We intentionally use == as otherwise it won't actually use the proxy. So weird :O
# noinspection PyComparisonWithNone
if current_org is None and not settings.MULTI_ORG:
if current_org == None and not settings.MULTI_ORG:
return redirect('/setup')
elif current_org is None:
elif current_org == None:
return redirect('/')

index_url = url_for("redash.index", org_slug=org_slug)
Expand Down
2 changes: 1 addition & 1 deletion redash/handlers/setup.py
Expand Up @@ -38,7 +38,7 @@ def create_org(org_name, user_name, email, password):

@routes.route('/setup', methods=['GET', 'POST'])
def setup():
if current_org is not None or settings.MULTI_ORG:
if current_org != None or settings.MULTI_ORG:
return redirect('/')

form = SetupForm(request.form)
Expand Down