mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-14 17:08:31 +08:00
Go: fix CLI logout command (#14672)
### What problem does this PR solve? ``` RAGFlow(user)> logout; SUCCESS ``` ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -210,10 +210,10 @@ func (c *RAGFlowClient) Logout() (ResponseIf, error) {
|
||||
if c.ServerType == "admin" {
|
||||
path = "/admin/logout"
|
||||
} else {
|
||||
path = "/user/logout"
|
||||
path = "/auth/logout"
|
||||
}
|
||||
|
||||
resp, err := c.HTTPClient.Request("GET", path, "web", nil, nil)
|
||||
resp, err := c.HTTPClient.Request("POST", path, "web", nil, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user