- 移除 `UserInfoController`,新增 `UserControllers` 使用 `UserService` - 添加 `UserService` 用于处理用户信息 - 新增 `UserProfile` DTO - 添加数据库迁移以支持用户表结构
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
@page
|
|
@model DeletePersonalDataModel
|
|
@{
|
|
ViewData["Title"] = "Delete Personal Data";
|
|
ViewData["ActivePage"] = ManageNavPages.PersonalData;
|
|
}
|
|
|
|
<h3>@ViewData["Title"]</h3>
|
|
|
|
<div class="alert alert-warning" role="alert">
|
|
<p>
|
|
<strong>Deleting this data will permanently remove your account, and this cannot be recovered.</strong>
|
|
</p>
|
|
</div>
|
|
|
|
<div>
|
|
<form id="delete-user" method="post">
|
|
<div asp-validation-summary="ModelOnly" class="text-danger" role="alert"></div>
|
|
@if (Model.RequirePassword)
|
|
{
|
|
<div class="form-floating mb-3">
|
|
<input asp-for="Input.Password" class="form-control" autocomplete="current-password" aria-required="true" placeholder="Please enter your password." />
|
|
<label asp-for="Input.Password" class="form-label"></label>
|
|
<span asp-validation-for="Input.Password" class="text-danger"></span>
|
|
</div>
|
|
}
|
|
<button class="w-100 btn btn-lg btn-danger" type="submit">Delete data and close my account</button>
|
|
</form>
|
|
</div>
|
|
|
|
@section Scripts {
|
|
<partial name="_ValidationScriptsPartial" />
|
|
}
|