I created a new Blazor project with individual accounts, then transferred the files over to the existing project. Then renamed ApplicationDbContext to: IdentityContext to distinguish from the application context. Then ran the update database command with the existing migration for identity.
12 lines
436 B
Plaintext
12 lines
436 B
Plaintext
@using ServerManagement.Components.Account.Shared
|
|
<Router AppAssembly="typeof(Program).Assembly">
|
|
<Found Context="routeData">
|
|
<AuthorizeRouteView RouteData="routeData" DefaultLayout="typeof(Layout.MainLayout)">
|
|
<NotAuthorized>
|
|
<RedirectToLogin />
|
|
</NotAuthorized>
|
|
</AuthorizeRouteView>
|
|
<FocusOnNavigate RouteData="routeData" Selector="h1" />
|
|
</Found>
|
|
</Router>
|