diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-06-27 03:36:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-26 21:36:10 +0200 |
commit | ddf96f68cc99ad8002a92660372f38b654eb6221 (patch) | |
tree | 53c251a6f82beda060ad9e9238979e3f474f1e31 /routers | |
parent | da6df0d0636c9e7bb5481e41dcd7d8f9b46deed5 (diff) | |
download | gitea-ddf96f68cc99ad8002a92660372f38b654eb6221.tar.gz gitea-ddf96f68cc99ad8002a92660372f38b654eb6221.zip |
Use JSON response for "user/logout" (#25522)
The request sent to "user/logout" is from "link-action", it expects to
get JSON response.
Diffstat (limited to 'routers')
-rw-r--r-- | routers/web/auth/auth.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/auth/auth.go b/routers/web/auth/auth.go index e0883a2696..bc8f6d58c9 100644 --- a/routers/web/auth/auth.go +++ b/routers/web/auth/auth.go @@ -383,7 +383,7 @@ func SignOut(ctx *context.Context) { }) } HandleSignOut(ctx) - ctx.Redirect(setting.AppSubURL + "/") + ctx.JSONRedirect(setting.AppSubURL + "/") } // SignUp render the register page |