2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-06 02:37:16 +08:00

feat: 适配前端修改

This commit is contained in:
耗子
2023-10-29 16:07:18 +08:00
parent c82bd280aa
commit 83ebe763d2
2 changed files with 2 additions and 2 deletions

View File

@@ -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密码不能为空")
}

View File

@@ -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密码不能为空")
}