Skip to content

fix: redirect missing users to login - #16

Open
chrispaulintheory wants to merge 1 commit into
flashvenom:publicfrom
chrispaulintheory:chris/authenticated-user-redirect-only
Open

chrispaulintheory wants to merge 1 commit into
flashvenom:publicfrom
chrispaulintheory:chris/authenticated-user-redirect-only

Conversation

@chrispaulintheory

Copy link
Copy Markdown

Redirect authenticated sessions with no matching ApplicationUser to login and prevent DailyTaskList from dereferencing a null CurrentUser.

- Treat a missing StateService.CurrentUser as an authentication/state failure.
- Redirect authenticated sessions without a matching ApplicationUser to the
  login page with the original return URL.
- Prevent DailyTaskList from dereferencing CurrentUser before state initialization.
- Render the welcome greeting only when a valid current user is available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant