Skip to content

Commit

Permalink
feat: 适配前端修改
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Oct 29, 2023
1 parent c82bd28 commit 83ebe76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/http/controllers/plugins/mysql57/mysql57_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ func (c *Mysql57Controller) SetRootPassword(ctx http.Context) http.Response {
return controllers.Error(ctx, http.StatusInternalServerError, "MySQL 未运行")
}

rootPassword := ctx.Request().Input(models.SettingKeyMysqlRootPassword)
rootPassword := ctx.Request().Input("password")
if len(rootPassword) == 0 {
return controllers.Error(ctx, http.StatusUnprocessableEntity, "MySQL root密码不能为空")
}
Expand Down
2 changes: 1 addition & 1 deletion app/http/controllers/plugins/mysql80/mysql80_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ func (c *Mysql80Controller) SetRootPassword(ctx http.Context) http.Response {
return controllers.Error(ctx, http.StatusInternalServerError, "MySQL 未运行")
}

rootPassword := ctx.Request().Input(models.SettingKeyMysqlRootPassword)
rootPassword := ctx.Request().Input("password")
if len(rootPassword) == 0 {
return controllers.Error(ctx, http.StatusUnprocessableEntity, "MySQL root密码不能为空")
}
Expand Down

0 comments on commit 83ebe76

Please sign in to comment.