Browse Source

Add demo plugin

master
Jonas Franz 4 years ago
commit
f0138ec845
Signed by: JonasFranzDEV
GPG Key ID: 7293A220B7C38080
  1. 19
      main.go

19
main.go

@ -0,0 +1,19 @@ @@ -0,0 +1,19 @@
package main
import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/log"
)
func StartPlugin() {
err := models.CreateUser(&models.User{
Name: "NicePlugin",
Email: "plugin@knt.li",
Passwd: "test",
IsActive: false,
IsAdmin: false,
})
if err != nil {
log.Error(4, "StartPlugin: %v", err)
}
}
Loading…
Cancel
Save