Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Thornton <art27@cantab.net>
  • Loading branch information
zeripath committed Jun 23, 2021
1 parent 65714ff commit e1a015f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion services/auth/signin.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ func UserSignIn(username, password string) (*models.User, error) {
err = models.ErrUserProhibitLogin{UID: authUser.ID, Name: authUser.Name}
}

log.Warn("Failed to login '%s' via '%s': %v", username, source.Name, err)
if models.IsErrUserNotExist(err) {
log.Debug("Failed to login '%s' via '%s': %v", username, source.Name, err)
} else {
log.Warn("Failed to login '%s' via '%s': %v", username, source.Name, err)
}
}

return nil, models.ErrUserNotExist{Name: username}
Expand Down

0 comments on commit e1a015f

Please sign in to comment.