1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-27 04:38:36 +00:00

Update services/auth/basic.go

Co-authored-by: delvh <dev.lh@web.de>
This commit is contained in:
Jason Song
2023-01-04 20:36:09 +08:00
committed by GitHub
parent 0d2945fe4d
commit e35a046c7a

View File

@@ -109,7 +109,7 @@ func (b *Basic) Verify(req *http.Request, w http.ResponseWriter, store DataStore
} }
// check task token // check task token
task, err := actions_model.GetRunningTaskByToken(db.DefaultContext, authToken) task, err := actions_model.GetRunningTaskByToken(req.Context(), authToken)
if err == nil && task != nil { if err == nil && task != nil {
log.Trace("Basic Authorization: Valid AccessToken for task[%d]", task.ID) log.Trace("Basic Authorization: Valid AccessToken for task[%d]", task.ID)