如何在Asp.NET Core Identity UI 3.0.0中自定义网页的URL

时间:2019-10-12 21:14:21

标签: c# asp.net-core asp.net-core-identity .net-core-3.0 asp.net-core-3.0

我使用的是Blazor Server Web应用程序.NET Core 3.0.100,具有这些身份验证包

<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="3.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="3.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="3.0.0" />

我要转到登录页面(例如,使用端口5011

https://localhost:5011/Identity/Account/Login

我通过

转到“注册”页面
https://localhost:5011/Identity/Account/Register

我想更改为

https://localhost:5011/login
https://localhost:5011/register

如何做到这一点?

0 个答案:

没有答案