diff options
Diffstat (limited to 'api/WhatApi/Endpoints/GetLoginPageEndpoint.cs')
| -rw-r--r-- | api/WhatApi/Endpoints/GetLoginPageEndpoint.cs | 6 |
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 |
