fix: redirect on successful login from /

This commit is contained in:
Abhinav Raut
2024-10-07 04:32:53 +05:30
parent 4f9118d675
commit e246bd335a
+1 -1
View File
@@ -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, "")