Merge branch 'main' into create-user-system-defaults

This commit is contained in:
Jimmy Praet
2022-04-10 08:43:49 +02:00
committed by GitHub
150 changed files with 2423 additions and 1090 deletions
-10
View File
@@ -20,16 +20,6 @@ import (
"code.gitea.io/gitea/modules/web/middleware"
)
// The purpose of the following three function variables is to let the linter know that
// those functions are not dead code and are actually being used
var (
_ = handleSignIn
// SharedSession the session auth should only be used by web, but now both web and API/v1
// will use it. We can remove this after Web removed dependent API/v1
SharedSession = &Session{}
)
// Init should be called exactly once when the application starts to allow plugins
// to allocate necessary resources
func Init() {