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

Commit 1440e72

Browse files
natemcmasterdavidfowl
authored andcommitted
Update 4. Add auth features.md (#81)
1 parent e412ec0 commit 1440e72

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/4. Add auth features.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ In this module we're going to add the capability for users to register and sign-
2424
```
2525
1. Run this command to generate the code to use Identity.
2626
```
27-
dotnet aspnet-codegenerator identity --dbContext FrontEnd.Data.IdentityDbContext --userClass FrontEnd.Data.User
27+
dotnet aspnet-codegenerator identity --dbContext FrontEnd.Data.IdentityDbContext --userClass FrontEnd.Data.User --useDefaultUI
2828
```
2929

3030
## Organize the newly created files
@@ -154,6 +154,10 @@ In this module we're going to add the capability for users to register and sign-
154154
> We now need to override the default Register page to add UI for accepting the admin creation key and verifying it when processing the request
155155

156156
1. Run the Identity scaffolder again, but this time select the `Account\Register` page in the list of files to override and select the `IdentityDbContext (FrontEnd.Data)`
157+
* On command line, run
158+
```
159+
dotnet aspnet-codegenerator identity --files Account.Register
160+
```
157161
1. Update the `RegisterModel` class in the `Register.cshtml.cs` file to accept `IAdminService` and `IdentityDbContext` parameters and save them to local members:
158162
``` c#
159163
[AllowAnonymous]

0 commit comments

Comments
 (0)