You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
125 lines
4.5 KiB
125 lines
4.5 KiB
@inject Infrastructure.Application.Services.Settings.ISettingService settingService
|
|
@model User
|
|
@{
|
|
HtmlTitle = "账户安全";
|
|
var smsEnabled = Convert.ToBoolean(settingService.GetSetting("sms").Value);
|
|
}
|
|
<div class="panel panel-default">
|
|
<div class="panel-body">
|
|
<table class="table table-bordered table-striped dataTable">
|
|
<tr>
|
|
<td>
|
|
登录密码
|
|
</td>
|
|
<td>
|
|
@(Model.PasswordConfirmed ? "已设置" : "未设置")
|
|
</td>
|
|
<td>
|
|
@if (Model.PasswordConfirmed)
|
|
{
|
|
<a class="btn btn-default btn-sm" href="@Url.Action("ChangePassword")">
|
|
<i class="fa fa-pencil"></i>
|
|
修改
|
|
</a>
|
|
}
|
|
else
|
|
{
|
|
<a class="btn btn-default btn-sm" href="@Url.Action("AddPassword")">
|
|
<i class="fa fa-pencil"></i>
|
|
设置
|
|
</a>
|
|
}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
邮箱
|
|
</td>
|
|
<td>
|
|
@if (Model.EmailConfirmed)
|
|
{
|
|
<text>@System.Text.RegularExpressions.Regex.Replace(Model.Email, "...@", "***@")</text>
|
|
}
|
|
else
|
|
{
|
|
<text>未设置</text>
|
|
}
|
|
</td>
|
|
<td>
|
|
@if (Model.EmailConfirmed)
|
|
{
|
|
<a class="btn btn-default btn-sm" href="@Url.Action("ChangeEmail")">
|
|
<i class="fa fa-pencil"></i>
|
|
修改
|
|
</a>
|
|
}
|
|
else
|
|
{
|
|
<a class="btn btn-default btn-sm" href="@Url.Action("SetEmail")">
|
|
<i class="fa fa-pencil"></i>
|
|
设置
|
|
</a>
|
|
}
|
|
</td>
|
|
</tr>
|
|
@if (smsEnabled)
|
|
{
|
|
<tr>
|
|
<td>
|
|
手机号
|
|
</td>
|
|
<td>
|
|
@if (Model.PhoneNumberConfirmed)
|
|
{
|
|
<text>@System.Text.RegularExpressions.Regex.Replace(Model.PhoneNumber, "...$", "***")</text>
|
|
}
|
|
else
|
|
{
|
|
<text>未设置</text>
|
|
}
|
|
</td>
|
|
<td>
|
|
@if (Model.PhoneNumberConfirmed)
|
|
{
|
|
<a class="btn btn-default btn-sm" href="@Url.Action("ChangePhoneNumber")">
|
|
<i class="fa fa-pencil"></i>
|
|
修改
|
|
</a>
|
|
}
|
|
else
|
|
{
|
|
<a class="btn btn-default btn-sm" href="@Url.Action("SetPhoneNumber")">
|
|
<i class="fa fa-pencil"></i>
|
|
设置
|
|
</a>
|
|
}
|
|
</td>
|
|
</tr>
|
|
}
|
|
@*<tr>
|
|
<td>
|
|
支付密码
|
|
</td>
|
|
<td>
|
|
@(Model.PayPasswordConfirmed ? "已设置" : "未设置")
|
|
</td>
|
|
<td>
|
|
@if (Model.PayPasswordConfirmed)
|
|
{
|
|
<a class="btn btn-default btn-sm" href="@Url.Action("ChangePayPassword")">
|
|
<i class="fa fa-pencil"></i>
|
|
修改
|
|
</a>
|
|
}
|
|
else
|
|
{
|
|
<a class="btn btn-default btn-sm" href="@Url.Action("AddPayPassword")">
|
|
<i class="fa fa-pencil"></i>
|
|
设置
|
|
</a>
|
|
}
|
|
</td>
|
|
</tr>*@
|
|
</table>
|
|
</div>
|
|
</div> |