From 8c355b82df02bc650c5ba101d838121f485e8581 Mon Sep 17 00:00:00 2001 From: ivar Date: Thu, 4 Dec 2025 23:30:39 +0100 Subject: Improve login experience --- api/WhatApi/Endpoints/GetLoginPageEndpoint.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'api/WhatApi/Endpoints/GetLoginPageEndpoint.cs') diff --git a/api/WhatApi/Endpoints/GetLoginPageEndpoint.cs b/api/WhatApi/Endpoints/GetLoginPageEndpoint.cs index dd17669..8b07a0e 100644 --- a/api/WhatApi/Endpoints/GetLoginPageEndpoint.cs +++ b/api/WhatApi/Endpoints/GetLoginPageEndpoint.cs @@ -6,7 +6,9 @@ public class GetLoginPageEndpoint : BaseEndpoint { [AllowAnonymous] [HttpGet("~/login")] - public ActionResult Handle() { - return Content(TemplateFulfiller.WebLoginPage(), "text/html"); + public ActionResult Handle(string? error = null) { + return Content(TemplateFulfiller.WebLoginPage(new TemplateFulfiller.WebLoginModel() { + Error = error ?? string.Empty + }), "text/html"); } } \ No newline at end of file -- cgit v1.3