734b2c91f9
1. 将Hua.Cli.Tests、项目共享库、模块项目等所有项目的TargetFramework从net8.0/net9.0升级到net10.0 2. 完善dotnet-tools.json、模板配置文件,添加必要的构建和发布配置 3. 新增微服务、网关、应用程序的启动脚本和基础配置文件 4. 补充产品管理模块的领域、应用、Web层基础代码和多语言资源
34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
@page
|
|
@using Volo.Abp.Users
|
|
@model Company.Project.AuthServer.Pages.IndexModel
|
|
@inject ICurrentUser CurrentUser
|
|
@if (CurrentUser.IsAuthenticated)
|
|
{
|
|
<div>
|
|
<abp-row>
|
|
<abp-column size-md="_3" class="text-center">
|
|
<i class="fa fa-user d-block" style="font-size: 10em; color: #12b900"></i>
|
|
<a abp-button="Primary" asp-controller="Logout" asp-action="Index" asp-area="Account">Logout</a>
|
|
</abp-column>
|
|
<abp-column size-md="_9">
|
|
<h2>@CurrentUser.UserName</h2>
|
|
<h5 class="text-muted">@CurrentUser.Email</h5>
|
|
<div>
|
|
<strong>Roles</strong>: @CurrentUser.Roles.JoinAsString(", ")
|
|
<br />
|
|
<strong>Claims</strong>: <br />
|
|
@Html.Raw(CurrentUser.GetAllClaims().Select(c => $"{c.Type}={c.Value}").JoinAsString(" <br /> "))
|
|
</div>
|
|
</abp-column>
|
|
</abp-row>
|
|
</div>
|
|
}
|
|
|
|
@if (!CurrentUser.IsAuthenticated)
|
|
{
|
|
<div class="text-center">
|
|
<img src="~/images/anonymous-user.png" width="200" /><br/><br />
|
|
<a abp-button="Primary" asp-page="/Account/Login">Login</a>
|
|
</div>
|
|
}
|