mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-22 02:23:32 +00:00
fix: redirect on successful login from /
This commit is contained in:
+1
-1
@@ -91,7 +91,7 @@ func noAuthPage(handler fastglue.FastRequestHandler) fastglue.FastRequestHandler
|
||||
// User is logged in direct if `next` is available else redirect.
|
||||
nextURI := string(r.RequestCtx.QueryArgs().Peek("next"))
|
||||
if len(nextURI) == 0 {
|
||||
nextURI = "/"
|
||||
nextURI = "/dashboard"
|
||||
}
|
||||
|
||||
return r.RedirectURI(nextURI, fasthttp.StatusFound, nil, "")
|
||||
|
||||
Reference in New Issue
Block a user