pixelated / pixelated-user-agent

User facing components of Pixelated: a JavaScript single page app and a RESTful service.
GNU Affero General Public License v3.0
159 stars 72 forks source link

Redirect to login page when not authorized to see a route #976

Open anikarni opened 7 years ago

anikarni commented 7 years ago

Right now, when we try to access a route and are not logged in, we get a "Unauthorized!" message and no html. We should be instead redirected to login.

screen shot 2017-02-13 at 12 05 17

Acceptance Criteria

Given I'm not logged in, when I try to access a page that exists, such as "https://mail.wazokazi.is/backup-account", I should be redirected to login.

Given I'm not logged in, when I try to access a page that does not exist, such as "https://mail.wazokazi.is/banana", I should not be redirected.

In Scope

Out of Scope

Depends on

--