Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

Redirect to login page with a model "error" rather than a rails error page #24

Open
aaronlippold opened this issue Jun 29, 2018 · 2 comments

Comments

@aaronlippold
Copy link
Member

When you are currently not logged in and you git a page that requires you to be authenticated we are going to the standard rails error page.

We should update this to redirect to the login page with a red error notification saying that you need to log in to use this feature, section or whatnot.

@lukemalinowski
Copy link
Collaborator

Aaron, do you have exact pages still do this that should not? Only one I can think of is if you want people to be prompted to login if they directly go to an evaluation URL they are not allowed to access? It should be noted this will leak the evaluation id's existence as non-existent evaluations will return a 404 or 500.

@robthew
Copy link
Collaborator

robthew commented Jul 24, 2018

I'll add in a exception catch into the application_controller.rb to handle any unauthorized page accesses. It will redirect to the root and flash an message

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

No branches or pull requests

5 participants