- Add Docker Swarm deploy stack, CI workflow (.gitea), entrypoint script - Fix Dockerfile to build Nalu.Web (was pointing to old Nalu.Api path) - Add validate_name.md and other missing validators to prod - Add Stripe endpoints, HangfireDashboardAuth, InputGuard, NameLookupService - Add SuspiciousRateLimiter, En/ pages, Legal/ pages, Seguranca docs - Add Nalu.Jobs and Nalu.NameImporter projects (were untracked) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
21 lines
577 B
C#
21 lines
577 B
C#
using System.Security.Claims;
|
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
|
|
|
namespace Nalu.Web.Pages.En;
|
|
|
|
public class PricingModel : PageModel
|
|
{
|
|
public bool IsAuthenticated { get; private set; }
|
|
public string CurrentPlan { get; private set; } = "free";
|
|
public string? CheckoutError { get; private set; }
|
|
|
|
public void OnGet()
|
|
{
|
|
IsAuthenticated = User.Identity?.IsAuthenticated ?? false;
|
|
if (IsAuthenticated)
|
|
CurrentPlan = User.FindFirstValue("plan") ?? "free";
|
|
|
|
CheckoutError = TempData["CheckoutError"] as string;
|
|
}
|
|
}
|