diff options
author | Joe Chen <jc@unknwon.io> | 2022-06-11 09:42:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-11 09:42:17 +0800 |
commit | f837ea6346ac720d586eda51ab89c5c71a1f3e65 (patch) | |
tree | 678b0bdccee80e65c399e8696cd209c9e902618d /internal/route/user/auth.go | |
parent | 9776bdc9b8b441ebd73c100bfe2aa4e495c233ca (diff) |
db: use `context` and go-mockgen for `UsersStore` (#7042)
Diffstat (limited to 'internal/route/user/auth.go')
-rw-r--r-- | internal/route/user/auth.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/route/user/auth.go b/internal/route/user/auth.go index f8bbe7ab..b3b785c2 100644 --- a/internal/route/user/auth.go +++ b/internal/route/user/auth.go @@ -161,7 +161,7 @@ func LoginPost(c *context.Context, f form.SignIn) { return } - u, err := db.Users.Authenticate(f.UserName, f.Password, f.LoginSource) + u, err := db.Users.Authenticate(c.Req.Context(), f.UserName, f.Password, f.LoginSource) if err != nil { switch errors.Cause(err).(type) { case auth.ErrBadCredentials: |