Fixing crash when attempting to login (#4704)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
06daf8b5ac
Коммит
05783664cd
@@ -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 {
|
||||
|
||||
Ссылка в новой задаче
Block a user