diff options
| author | Bobby <[email protected]> | 2025-12-19 18:01:24 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2025-12-19 18:01:24 +0530 |
| commit | b1bfec1ce2987d9fe0cc52e5ae9115977fdf8c24 (patch) | |
| tree | 7080b7dc97522ffe0837a1e0b2965489d7e67664 /controllers | |
| parent | 767297e28d47ee9cf3722054e41caa837f0e68d2 (diff) | |
| download | lain-b1bfec1ce2987d9fe0cc52e5ae9115977fdf8c24.tar.xz lain-b1bfec1ce2987d9fe0cc52e5ae9115977fdf8c24.zip | |
added utils, templates, routes, types, middleware, processors and a whole lot of things for a basic login page
Diffstat (limited to 'controllers')
| -rw-r--r-- | controllers/login.go | 17 |
1 files changed, 17 insertions, 0 deletions
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, + }) +} |
