@model ManageAccountViewModel @{ ViewData["Title"] = "Manage Account"; var subscription = Model.Subscription; }

Account

Manage Account

@Model.User.Email

@if (TempData["AuthMessage"] is string authMessage) {
@authMessage
}

Account security

Email address

@Model.User.Email

Email verified

@(Model.User.EmailConfirmed ? "Yes" : "No")

Two-factor authentication

@(Model.User.TwoFactorEnabled ? "Enabled" : "Not enabled")

Change Password

Two-Factor Authentication

Use an authenticator app to add an extra sign-in step for your account.

@if (Model.User.TwoFactorEnabled) { Recovery Codes Disable Two Factor } else { Enable Two Factor }

Subscription

@if (subscription is null) {

No active subscription is assigned.

} else {

Current plan

@subscription.DisplayName

Books

@FormatLimit(subscription.MaxBooks)

Storage

@FormatStorage(subscription.MaxStorageMB)

Chapters per book

@FormatLimit(subscription.MaxChaptersPerBook)

Scenes per book

@FormatLimit(subscription.MaxScenesPerBook)

Characters per project

@FormatLimit(subscription.MaxCharactersPerProject)

Collaborators

@subscription.MaxCollaborators

}
@functions { private static string FormatLimit(int value) => value >= 999999 ? "Practical unlimited" : value.ToString("N0"); private static string FormatStorage(int value) => value >= 1024 ? $"{value / 1024:N0} GB" : $"{value:N0} MB"; }