AgileVentures / AgileVentures/WebsiteOne-FE

Redirect user to Login page if not logged and attempts to create new project

Offen
#200 1 Kommentar 1 Reaktion 1 zugewiesene Person Beansprucht von @ALau2088 Auf GitHub ansehen
good first issue production
Vorherrschende Sprache
JavaScript
Sterne
3
Forks
22
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

When a user who is not logged in attempts to create a new project, by accessing the `/projects/new` route, they should be redirected to the login page and asked to login before they can proceed. Once they login they should be redirected to the create new project page where they can proceed to create a project.
## Expected Behavior

* User who is not logged in is redirected to the login page if they access `/projects/new` route and asked to login. They are redirected to create new project form once they log in.
* Logged in user is able to access the create new project page and proceed to create a project
## Current Behavior

* All the users(whether logged in or not) are able to access the create new projects page.
* The users who are not logged in are however not able to create a new project due to authentication failure by the api and no error message is displayed on the UI to signal this.
* Logged in users are able to successfuly create new projects
## Possible Solution

* Redirect users to the login page if they are not logged in and want to create a new project

## Your Environment

* Version used:
* Environment name and version (e.g. Chrome 39):
* Operating System and version (desktop or mobile):

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.