From b1bfec1ce2987d9fe0cc52e5ae9115977fdf8c24 Mon Sep 17 00:00:00 2001 From: Bobby <30593201+luciferreeves@users.noreply.github.com> Date: Fri, 19 Dec 2025 18:01:24 +0530 Subject: added utils, templates, routes, types, middleware, processors and a whole lot of things for a basic login page --- controllers/login.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 controllers/login.go (limited to 'controllers') diff --git a/controllers/login.go b/controllers/login.go new file mode 100644 index 0000000..2690538 --- /dev/null +++ b/controllers/login.go @@ -0,0 +1,17 @@ +package controllers + +import ( + "lain/config" + "lain/utils/meta" + "lain/utils/shortcuts" + + "github.com/gofiber/fiber/v2" +) + +func LoginPage(context *fiber.Ctx) error { + meta.SetPageTitle(context, "Login") + + return shortcuts.Render(context, "auth/login", fiber.Map{ + "AllowedDomains": config.Server.AllowedDomains, + }) +} -- cgit v1.2.3