diff options
author | Corey Hulen <corey@hulen.com> | 2016-12-05 04:45:29 -0800 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-12-05 07:45:29 -0500 |
commit | 05783664cd91e278913db5504e60bb8bc2992cb6 (patch) | |
tree | 05e7a7194614a8f40269501534aa6288301fc977 /api/user.go | |
parent | 06daf8b5ac2595fdd2a1fc78c488943a69253c60 (diff) | |
download | chat-05783664cd91e278913db5504e60bb8bc2992cb6.tar.gz chat-05783664cd91e278913db5504e60bb8bc2992cb6.tar.bz2 chat-05783664cd91e278913db5504e60bb8bc2992cb6.zip |
Fixing crash when attempting to login (#4704)
Diffstat (limited to 'api/user.go')
-rw-r--r-- | api/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/user.go b/api/user.go index e5d00ea36..83bdb8c68 100644 --- a/api/user.go +++ b/api/user.go @@ -467,7 +467,7 @@ func login(c *Context, w http.ResponseWriter, r *http.Request) { c.LogAuditWithUserId(id, "attempt") if result := <-Srv.Store.User().Get(id); result.Err != nil { - c.LogAuditWithUserId(user.Id, "failure") + c.LogAuditWithUserId(id, "failure") c.Err = result.Err c.Err.StatusCode = http.StatusBadRequest if einterfaces.GetMetricsInterface() != nil { |