package components import ( "context" "github.com/starfleetcptn/gomft/internal/db" ) // Dialog component for 2FA disable confirmation with Flowbite styling templ TwoFactorDisableDialog() { } templ Profile(ctx context.Context, user db.User) { @LayoutWithContext("Profile", ctx) { @TwoFactorDisableDialog()

Profile

Profile Information

Personal details and application settings

Email
{ user.Email }
Roles
if user.GetIsAdmin() { Administrator } for _, role := range user.Roles { { role.Name } }
Permissions
for _, role := range user.Roles { for _, perm := range role.GetPermissions() { { perm } } }
Two-Factor Authentication
if user.TwoFactorEnabled {
Enabled
} else {
Disabled
}
Theme

Change Password

Update your password to keep your account secure

Password must be at least 8 characters with letters, numbers, and special characters

Security Information

All profile changes are securely logged for your protection. For security reasons, you'll be required to enter your password for sensitive changes.

} }