- 移除 `UserInfoController`,新增 `UserControllers` 使用 `UserService` - 添加 `UserService` 用于处理用户信息 - 新增 `UserProfile` DTO - 添加数据库迁移以支持用户表结构
26 lines
749 B
Plaintext
26 lines
749 B
Plaintext
@page
|
|
@model Disable2faModel
|
|
@{
|
|
ViewData["Title"] = "Disable two-factor authentication (2FA)";
|
|
ViewData["ActivePage"] = ManageNavPages.TwoFactorAuthentication;
|
|
}
|
|
|
|
<partial name="_StatusMessage" for="StatusMessage" />
|
|
<h3>@ViewData["Title"]</h3>
|
|
|
|
<div class="alert alert-warning" role="alert">
|
|
<p>
|
|
<strong>This action only disables 2FA.</strong>
|
|
</p>
|
|
<p>
|
|
Disabling 2FA does not change the keys used in authenticator apps. If you wish to change the key
|
|
used in an authenticator app you should <a asp-page="./ResetAuthenticator">reset your authenticator keys.</a>
|
|
</p>
|
|
</div>
|
|
|
|
<div>
|
|
<form method="post">
|
|
<button class="btn btn-danger" type="submit">Disable 2FA</button>
|
|
</form>
|
|
</div>
|