80 lines
2.8 KiB
Plaintext
80 lines
2.8 KiB
Plaintext
@model IdentitySample.Models.IndexViewModel
|
|
@{
|
|
//TODO: Until we have a way to specify the layout page at application level.
|
|
Layout = "/Views/Shared/_Layout.cshtml";
|
|
ViewBag.Title = "Manage your account";
|
|
}
|
|
|
|
<h2>@ViewBag.Title.</h2>
|
|
<p class="text-success">@ViewBag.StatusMessage</p>
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<p>
|
|
@(Model.HasPassword ? Html.ActionLink("Change your password", "ChangePassword")
|
|
: Html.ActionLink("Set your password", "SetPassword"))
|
|
</p>
|
|
<p>
|
|
Phone Number: @(Model.PhoneNumber ?? "None") [
|
|
@if (Model.PhoneNumber != null)
|
|
{
|
|
@Html.ActionLink("Change", "AddPhoneNumber")
|
|
@: |
|
|
@Html.ActionLink("Remove", "RemovePhoneNumber")
|
|
}
|
|
else
|
|
{
|
|
@Html.ActionLink("Add", "AddPhoneNumber")
|
|
}
|
|
]
|
|
</p>
|
|
<p>
|
|
External Logins: @Model.Logins.Count
|
|
@Html.ActionLink("[Manage]", "ManageLogins")
|
|
</p>
|
|
@if (Model.TwoFactor)
|
|
{
|
|
using (Html.BeginForm("DisableTFA", "Manage", FormMethod.Post, new {@class = "form-horizontal", role = "form"}))
|
|
{
|
|
@Html.AntiForgeryToken()
|
|
<p>
|
|
Two factor is currently enabled:
|
|
<input type="submit" value="Disable" class="btn btn-default"/>
|
|
</p>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
using (Html.BeginForm("EnableTFA", "Manage", FormMethod.Post, new {@class = "form-horizontal", role = "form"}))
|
|
{
|
|
@Html.AntiForgeryToken()
|
|
<p>
|
|
Two factor is currently disabled:
|
|
<input type="submit" value="Enable" class="btn btn-default"/>
|
|
</p>
|
|
}
|
|
}
|
|
@if (Model.BrowserRemembered)
|
|
{
|
|
using (Html.BeginForm("ForgetBrowser", "Manage", FormMethod.Post, new {@class = "form-horizontal", role = "form"}))
|
|
{
|
|
@Html.AntiForgeryToken()
|
|
<p>
|
|
Browser is curently remembered for two factor:
|
|
<input type="submit" value="Forget Browser" class="btn btn-default" />
|
|
</p>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
using (Html.BeginForm("RememberBrowser", "Manage", FormMethod.Post, new {@class = "form-horizontal", role = "form"}))
|
|
{
|
|
@Html.AntiForgeryToken()
|
|
<p>
|
|
Browser is curently not remembered for two factor:
|
|
<input type="submit" value="Remember Browser" class="btn btn-default"/>
|
|
</p>
|
|
}
|
|
}
|
|
</div>
|
|
</div>
|