Redirect to login instead of showing 404 page #37

Closed
opened 2018-05-24 10:11:17 +00:00 by elegaanz · 3 comments
elegaanz commented 2018-05-24 10:11:17 +00:00 (Migrated from github.com)

When a page is not available because the user is not logged in, Rocket sends a 404 page. We should instead redirect to the login page with an explanation.

When a page is not available because the user is not logged in, Rocket sends a 404 page. We should instead redirect to the login page with an explanation.

more or less related : going to /logout without being connected generate a 500

Edit:
Actually /logout is about unwrap()ing on a value which may be None, it's more related to #21 than to this

more or less related : going to /logout without being connected generate a 500 Edit: Actually /logout is about unwrap()ing on a value which may be None, it's more related to #21 than to this
elegaanz commented 2018-06-05 16:37:01 +00:00 (Migrated from github.com)

I guess this have been close by #45 (tell me if it's not the case).

I guess this have been close by #45 (tell me if it's not the case).

whoops, looks like I forgot to look at src/routes/user.rs, there are three routes still returning 404 here. I'll push something today or tomorrow to fix that

whoops, looks like I forgot to look at `src/routes/user.rs`, there are three routes still returning 404 here. I'll push something today or tomorrow to fix that
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Plume/Plume#37
No description provided.