Add authentication

Add user authentication module, Login page and initialization page.
Fixed the problem that the application could not start after the system restarted.
This commit is contained in:
link
2021-10-22 16:49:09 +08:00
parent 39ccbe251f
commit b3aa22605d
18 changed files with 155 additions and 43 deletions

View File

@@ -1,13 +1,14 @@
//go:build doc
// +build doc
package route
import (
_ "github.com/IceWhaleTech/CasaOS/docs"
ginSwagger "github.com/swaggo/gin-swagger"
"github.com/swaggo/gin-swagger/swaggerFiles"
swaggerFiles "github.com/swaggo/gin-swagger/swaggerFiles"
)
func init() {
// swagHandler = ginSwagger.WrapHandler(swaggerFiles.Handler)
swagHandler = ginSwagger.WrapHandler(swaggerFiles.Handler)
}