Use JSON response for "user/logout" (#25522)

The request sent to "user/logout" is from "link-action", it expects to
get JSON response.
This commit is contained in:
wxiaoguang authored and GitHub committed 2023-06-26 21:36:10 +02:00
1 parent da6df0d063
commit ddf96f68cc
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -383,7 +383,7 @@ func SignOut(ctx *context.Context) {
})
}
HandleSignOut(ctx)
ctx.Redirect(setting.AppSubURL + "/")
ctx.JSONRedirect(setting.AppSubURL + "/")
}
// SignUp render the register page