mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
fix: maybe fail to get get default ca dir #417
This commit is contained in:
parent
993e4a903d
commit
805934567a
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ func CreateAcmeUser(c *gin.Context) {
|
|||
"ca_dir": "omitempty",
|
||||
}).BeforeExecuteHook(func(ctx *cosy.Ctx[model.AcmeUser]) {
|
||||
if ctx.Model.CADir == "" {
|
||||
ctx.Model.CADir = settings.ServerSettings.CADir
|
||||
ctx.Model.CADir = settings.ServerSettings.GetCADir()
|
||||
}
|
||||
err := ctx.Model.Register()
|
||||
if err != nil {
|
||||
|
@ -46,7 +46,7 @@ func ModifyAcmeUser(c *gin.Context) {
|
|||
"ca_dir": "omitempty",
|
||||
}).BeforeExecuteHook(func(ctx *cosy.Ctx[model.AcmeUser]) {
|
||||
if ctx.Model.CADir == "" {
|
||||
ctx.Model.CADir = settings.ServerSettings.CADir
|
||||
ctx.Model.CADir = settings.ServerSettings.GetCADir()
|
||||
}
|
||||
|
||||
if ctx.OriginModel.Email != ctx.Model.Email ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue