change UserToken from interface to struct

This commit is contained in:
Marcus Efraimsson
2019-02-06 16:21:16 +01:00
parent 85ef2ca738
commit a60124a88c
10 changed files with 244 additions and 215 deletions

View File

@@ -137,7 +137,7 @@ func (hs *HTTPServer) loginUserWithUser(user *m.User, c *m.ReqContext) {
hs.log.Error("failed to create auth token", "error", err)
}
middleware.WriteSessionCookie(c, userToken.GetToken(), hs.Cfg.LoginMaxLifetimeDays)
middleware.WriteSessionCookie(c, userToken.UnhashedToken, hs.Cfg.LoginMaxLifetimeDays)
}
func (hs *HTTPServer) Logout(c *m.ReqContext) {