Add context to all methods in engine layer

This commit is contained in:
Deluan
2020-01-22 08:32:31 -05:00
parent c73f549c83
commit f0ee41a8af
14 changed files with 44 additions and 37 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ func authenticate(users engine.Users) func(next http.Handler) http.Handler {
token := ParamString(r, "t")
salt := ParamString(r, "s")
usr, err := users.Authenticate(username, pass, token, salt)
usr, err := users.Authenticate(r.Context(), username, pass, token, salt)
if err == model.ErrInvalidAuth {
log.Warn(r, "Invalid login", "username", username, err)
} else if err != nil {