mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-24 14:25:02 +02:00
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:
1 parent
da6df0d063
commit
ddf96f68cc
3 files changed
+4
-4
No files matched your search
@@ -383,7 +383,7 @@ func SignOut(ctx *context.Context) {
|
||||
})
|
||||
}
|
||||
HandleSignOut(ctx)
|
||||
ctx.Redirect(setting.AppSubURL + "/")
|
||||
ctx.JSONRedirect(setting.AppSubURL + "/")
|
||||
}
|
||||
|
||||
// SignUp render the register page
|
||||
|
||||
Reference in new issue
Block a user