diff options
| author | Bobby <[email protected]> | 2025-07-18 17:07:23 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2025-07-18 17:07:23 +0530 |
| commit | aa0405ee98c45a9bb25dd9959d899bbd56bc1b02 (patch) | |
| tree | c6b75124708f3a3ab5fecbdb454eb5f530dd2ffa /utils/auth | |
| parent | 821773b12c07a4bc23628e7d98ac4b34da1eb9e1 (diff) | |
| download | imageboard-aa0405ee98c45a9bb25dd9959d899bbd56bc1b02.tar.xz imageboard-aa0405ee98c45a9bb25dd9959d899bbd56bc1b02.zip | |
favourite system and ∂etails on single page
Diffstat (limited to 'utils/auth')
| -rw-r--r-- | utils/auth/auth.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/auth/auth.go b/utils/auth/auth.go index f92e955..82b7353 100644 --- a/utils/auth/auth.go +++ b/utils/auth/auth.go @@ -54,6 +54,10 @@ func GetLoginURLWithRedirect(ctx *fiber.Ctx) string { return config.URL_LOGIN + "?next=" + url.QueryEscape(currentPath) } +func GetLoginURLWithNextField(ctx *fiber.Ctx) string { + return config.URL_LOGIN + "?next=" + url.QueryEscape(GetRedirectURL(ctx)) +} + func GetLogoutURLWithRedirect(ctx *fiber.Ctx) string { currentPath := ctx.Path() if queryString := string(ctx.Request().URI().QueryString()); queryString != "" { |
