summaryrefslogtreecommitdiffstats
path: root/api/WhatApi/Endpoints/GetLoginPageEndpoint.cs
diff options
context:
space:
mode:
authorivar <i@oiee.no>2025-12-04 23:30:39 +0100
committerivar <i@oiee.no>2025-12-04 23:30:39 +0100
commit8c355b82df02bc650c5ba101d838121f485e8581 (patch)
tree00ff527de5968d7899f7f653355073b8a416328b /api/WhatApi/Endpoints/GetLoginPageEndpoint.cs
parentdeade767eace22a8c5281dcd5360c300395e2b5e (diff)
downloadwhat-8c355b82df02bc650c5ba101d838121f485e8581.tar.xz
what-8c355b82df02bc650c5ba101d838121f485e8581.zip
Improve login experienceHEADmaster
Diffstat (limited to 'api/WhatApi/Endpoints/GetLoginPageEndpoint.cs')
-rw-r--r--api/WhatApi/Endpoints/GetLoginPageEndpoint.cs6
1 files changed, 4 insertions, 2 deletions
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