diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-12-30 13:12:43 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-12-30 13:12:43 -0500 |
commit | 2a91e5e031d9490f8364d55cb023d384d56f047f (patch) | |
tree | 9d32b19ae22122d67e2395a3361d9d89650b7c53 /api/command_logout.go | |
parent | 28a7a2f200270ea64c7169403d79244babf5595b (diff) | |
download | chat-2a91e5e031d9490f8364d55cb023d384d56f047f.tar.gz chat-2a91e5e031d9490f8364d55cb023d384d56f047f.tar.bz2 chat-2a91e5e031d9490f8364d55cb023d384d56f047f.zip |
Clean up /logout command flow and errors (#4918)
Diffstat (limited to 'api/command_logout.go')
-rw-r--r-- | api/command_logout.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/command_logout.go b/api/command_logout.go index 474f0b58e..00375bb58 100644 --- a/api/command_logout.go +++ b/api/command_logout.go @@ -34,7 +34,7 @@ func (me *LogoutProvider) GetCommand(c *Context) *model.Command { func (me *LogoutProvider) DoCommand(c *Context, args *model.CommandArgs, message string) *model.CommandResponse { FAIL := &model.CommandResponse{ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL, Text: c.T("api.command_logout.fail_message")} - SUCCESS := &model.CommandResponse{GotoLocation: "/", ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL, Text: c.T("api.command_logout.success_message")} + SUCCESS := &model.CommandResponse{GotoLocation: "/login"} // We can't actually remove the user's cookie from here so we just dump their session and let the browser figure it out if c.Session.Id != "" { |