If no htpasswd provided, publish without futher moderation
This commit is contained in:
parent
b3351cb3c9
commit
b08ad493a9
3
main.go
3
main.go
@ -28,6 +28,9 @@ func main() {
|
|||||||
if htpasswd, err = NewHtpasswd(*htpasswd_file); htpasswd == nil {
|
if htpasswd, err = NewHtpasswd(*htpasswd_file); htpasswd == nil {
|
||||||
log.Fatal("Unable to parse htpasswd:", err)
|
log.Fatal("Unable to parse htpasswd:", err)
|
||||||
}
|
}
|
||||||
|
} else if NextImgDir == "./images/next/" {
|
||||||
|
log.Println("Disable admin interface, images will be published without moderation")
|
||||||
|
NextImgDir = PublishedImgDir
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Println("Checking paths...")
|
log.Println("Checking paths...")
|
||||||
|
Loading…
Reference in New Issue
Block a user