From b01bab835d32a0c51076f81269df8c9cb77bf757 Mon Sep 17 00:00:00 2001 From: sunty <1172534965@qq.com> Date: 星期五, 01 十一月 2019 13:43:04 +0800 Subject: [PATCH] add es cluster manger --- controllers/user.go | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/controllers/user.go b/controllers/user.go index 463c418..56b5c8c 100644 --- a/controllers/user.go +++ b/controllers/user.go @@ -47,6 +47,11 @@ tokenM["username"] = loginedM["username"] tokenM["permissions"] = loginedM["permissions"] tokenStr := (*authDriver).Login(c.Request, c.Writer, tokenM) + + + userId := loginedM["id"].(string) + auth.RemoveOutUser(userId) + c.JSON(200,map[string]interface{}{ "userInfo":loginedM, "access_token":tokenStr, -- Gitblit v1.8.0