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

Login API not working under webpack #828

Closed
alexsielicki opened this issue Aug 14, 2018 · 2 comments
Closed

Login API not working under webpack #828

alexsielicki opened this issue Aug 14, 2018 · 2 comments
Assignees
Labels

Comments

@alexsielicki
Copy link
Collaborator

Our login system is not working under webpack on the react branch. Need to fix this.

@alexsielicki alexsielicki added this to the Webpack Conversion milestone Aug 14, 2018
@alexsielicki alexsielicki self-assigned this Aug 14, 2018
@alexsielicki
Copy link
Collaborator Author

@Mletter1 or @wlhunt, do either of you know why we have the projects-redirect line in web-server-config.ini?

projects-redirect: "/projects"

It seems to be used by get_root() in handlers.py:

def get_root():
    """
    Redirect all requests to "/" to "/projects"
    """
    current_url = urlparse.urlparse(cherrypy.url())
    proj_url = "https://" + current_url.netloc + cherrypy.request.app.config["slycat-web-server"]["projects-redirect"]
    raise cherrypy.HTTPRedirect(proj_url, 303)

to redirect to /projects when someone logs in to the root of the site. I'd like to get rid of it and just automatically serve up the list of projects when anyone visits the root of the site. Any thoughts?

@alexsielicki
Copy link
Collaborator Author

This should now be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant