Support bot user

This commit is contained in:
Lunny Xiao
2022-11-14 20:59:44 +08:00
committed by Jason Song
parent 1ddf3b2d12
commit aa09eb63e1
12 changed files with 120 additions and 84 deletions

View File

@ -117,9 +117,9 @@ func (b *Basic) Verify(req *http.Request, w http.ResponseWriter, store DataStore
store.GetData()["IsBotToken"] = true
store.GetData()["BotTaskID"] = task.ID
return bots_model.NewBotUser()
return user_model.NewBotUser()
} else {
log.Error("GetRunnerByToken: %v", err)
log.Error("GetRunnerByToken: %v %v", task, err)
}
if !setting.Service.EnableBasicAuth {