feat: return initial admin password from install flow

This commit is contained in:
line-6000
2026-06-29 13:58:16 +08:00
parent 15de0e6940
commit 7d09adff20
10 changed files with 533 additions and 174 deletions
+3
View File
@@ -27,6 +27,9 @@ const (
func CheckAdminJWT() echo.MiddlewareFunc {
return func(next echo.HandlerFunc) echo.HandlerFunc {
return func(ctx echo.Context) error {
if ctx.Path() == "" {
return next(ctx)
}
token, err := adminTokenFromAuthorization(ctx.Request().Header.Get("Authorization"))
if err != nil {
return err