[MM-18871] Update session in app instance in app layer (#12540)

This commit is contained in:
Rajat Varyani
2019-10-25 14:13:13 +05:30
committed by Sudheer
parent 7c230d542a
commit 7cf7e7f238
2 changed files with 1 additions and 2 deletions

View File

@@ -1422,8 +1422,6 @@ func login(c *Context, w http.ResponseWriter, r *http.Request) {
user.TermsOfServiceCreateAt = userTermsOfService.CreateAt
}
c.App.Session = *session
user.Sanitize(map[string]bool{})
w.Write([]byte(user.ToJson()))