fix: move signin handler #181
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 47s
Build and Push Docker Image / Explore-Gitea-Actions (push) Successful in 51s

This commit was merged in pull request #198.
This commit is contained in:
2024-10-03 23:23:16 +02:00
parent cc3747b226
commit cbf5b39294
4 changed files with 31 additions and 27 deletions

View File

@@ -27,6 +27,6 @@ func GetHandler(d *sql.DB, serverSettings *types.ServerSettings) http.Handler {
return middleware.Logging(middleware.EnableCors(serverSettings, router))
}
func auth(db *sql.DB, h http.Handler) http.Handler {
func authMiddleware(db *sql.DB, h http.Handler) http.Handler {
return middleware.EnsureValidSession(db, h)
}