(super beginner alert)
in the "default" Blazor server side project with built in Login the LoginDisplay.razor file contains
<AuthorizeView>
<Authorized>
<a href="Identity/Account/Manage">Hello, @context.User.Identity.Name!</a>
<form method="post" action="Identity/Account/LogOut">
<button type="submit" class="nav-link btn btn-link">Log out</button>
</form>
</Authorized>
<NotAuthorized>
<a href="Identity/Account/Register">Register</a>
<a href="Identity/Account/Login">Log in</a>
</NotAuthorized>
let's take as example "Identity/Account/Register":
if I look into the "Identity" Area the only pages I find are
"Account" and "Shared"; none of which contains the aforementioned page.
what am I missing?
thank you
[edit] Following Chris Sainty answer (thank you)
but I'm experiencing this:
https://github.com/aspnet/AspNetCore/issues/13120
trying this solution
The steps, based on a Preview8 server-side project with "Individual user accounts" :
- temporarily disable this line in Startup: // endpoints.MapBlazorHub(selector: "app");
- run the scaffolding wizzard, add any pages you want
- uncomment the endpoints.MapBlazorHub() line again
- remove Pages/_ViewStart.cshtml
- fix Pages/Shared/_Layout.cshtml, the first line is missing @using
- fix Pages/Shared/_Loginpartial.cshtml, the second line is missing @inject