diff options
| author | Bobby <[email protected]> | 2026-02-11 14:53:34 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2026-02-11 14:53:34 +0530 |
| commit | 3360be86fb6a595659c17f272d0c6072e512c154 (patch) | |
| tree | 4b78aa8120909b596f219a0159a3532200a05b1a /utils | |
| parent | d87e08e0fc5911b2ff40604944448e1f0aaa31b7 (diff) | |
| download | cafe-3360be86fb6a595659c17f272d0c6072e512c154.tar.xz cafe-3360be86fb6a595659c17f272d0c6072e512c154.zip | |
Implement OpenID authentication flow, including user session management and user info retrieval
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/auth/auth.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/auth/auth.go b/utils/auth/auth.go index 3cee3a4..9f6e79d 100644 --- a/utils/auth/auth.go +++ b/utils/auth/auth.go @@ -20,7 +20,7 @@ func IsAuthenticated(context *fiber.Ctx) bool { func RequireAuthentication(handler fiber.Handler) fiber.Handler { return func(context *fiber.Ctx) error { if !IsAuthenticated(context) { - return shortcuts.Redirect(context, "auth.authenticate") + return shortcuts.Redirect(context, "auth.login") } return handler(context) } |
