mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-23 21:04:55 +02:00
Support bot user
This commit is contained in:
1 parent
1ddf3b2d12
commit
aa09eb63e1
12 files changed
+120
-84
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user