diff options
| author | Bobby <[email protected]> | 2026-02-11 15:09:11 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2026-02-11 15:09:11 +0530 |
| commit | 136e437b1ae1697c688c9a548cd4ae0c5a948419 (patch) | |
| tree | ade966345b90873bd84d9aefdc4c56f8939c9153 /controllers | |
| parent | 3360be86fb6a595659c17f272d0c6072e512c154 (diff) | |
| download | cafe-136e437b1ae1697c688c9a548cd4ae0c5a948419.tar.xz cafe-136e437b1ae1697c688c9a548cd4ae0c5a948419.zip | |
Refactor logout functionality to render a dedicated logout template and update main page layout for improved user experience
Diffstat (limited to 'controllers')
| -rw-r--r-- | controllers/auth.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controllers/auth.go b/controllers/auth.go index 964a22a..0c9df74 100644 --- a/controllers/auth.go +++ b/controllers/auth.go @@ -132,5 +132,5 @@ func Logout(ctx *fiber.Ctx) error { log.Printf("Failed to destroy session: %v", err) } - return shortcuts.Redirect(ctx, "mainHall") + return shortcuts.Render(ctx, "auth/logout", nil) } |
