mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 18:35:51 +02:00
fix: incorrect status of enabled 2fa of user #577
This commit is contained in:
parent
f2a586ca78
commit
2f7070377f
4 changed files with 31 additions and 11 deletions
|
@ -60,6 +60,13 @@ func (c *ConfigPayload) mkCertificateDir() (err error) {
|
|||
}
|
||||
}
|
||||
|
||||
if _, err = os.Stat(c.CertificateDir); os.IsNotExist(err) {
|
||||
err = os.MkdirAll(c.CertificateDir, 0755)
|
||||
if err == nil {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// For windows, replace * with # (issue #403)
|
||||
c.CertificateDir = strings.ReplaceAll(c.CertificateDir, "*", "#")
|
||||
if _, err = os.Stat(c.CertificateDir); os.IsNotExist(err) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue