Skip to content
This repository was archived by the owner on Jul 10, 2024. It is now read-only.

Commit 2b70d26

Browse files
natemcmasterdavidfowl
authored andcommitted
Update 5. Add personal agenda.md (#89)
1 parent 2a95898 commit 2b70d26

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/5. Add personal agenda.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,18 @@ In this section we'll add features that track attendees who have registered on t
279279

280280
## Scaffold and update Logout page
281281
>One problem with the above system is that if a new user creates an account but does not register as an attendee, they are unable to logout. The general solution to this is to add the `[SkipWelcome]` page to the `Logout` view, but in order to do that we will need to scaffold it. Identity pages are served from the Identity UI NuGet package by default, but can be added to a project and overridden, as we have already seen in the `Register` page.
282+
283+
### Using Visual Studio
282284
1. Right-click on the `FrontEnd` project and select *Add* / *New Scaffolded Item* / *Identity*.
283285
1. Check the `Account\Logout` page, select the `IdentityDbContext` as the *Data context class*, and press *Add*.
286+
287+
### Using command line
288+
1. Run this command from the **FrontEnd** project folder.
289+
```
290+
dotnet aspnet-codegenerator identity --dbContext FrontEnd.Data.IdentityDbContext --files Account.Logout
291+
```
292+
293+
### Next
284294
1. Add the `[SkipWelcome]` attribute to the `LogoutModel` class:
285295
```csharp
286296
[SkipWelcome]
@@ -467,7 +477,7 @@ In this section we'll add features that track attendees who have registered on t
467477
@page
468478
@model MyAgendaModel
469479
@{
470-
ViewData["Title"] = "Home Page";
480+
ViewData["Title"] = "My Agenda";
471481
}
472482

473483
@if (Model.ShowMessage)

0 commit comments

Comments
 (0)